fix bug of utest build.

pull/133/head
winlin 11 years ago
parent 8651f38b59
commit 25630b5211

@ -26,6 +26,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_core_autofree.hpp> #include <srs_core_autofree.hpp>
#include <srs_protocol_utility.hpp> #include <srs_protocol_utility.hpp>
#ifdef SRS_AUTO_SSL
// verify the sha256 // verify the sha256
VOID TEST(HandshakeTest, OpensslSha256) VOID TEST(HandshakeTest, OpensslSha256)
{ {
@ -237,3 +239,5 @@ VOID TEST(HandshakeTest, BytesEqual)
EXPECT_TRUE(srs_bytes_equals(a1, a2, 1)); EXPECT_TRUE(srs_bytes_equals(a1, a2, 1));
EXPECT_FALSE(srs_bytes_equals(a1, b2, 1)); EXPECT_FALSE(srs_bytes_equals(a1, b2, 1));
} }
#endif

@ -31,6 +31,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_protocol_rtmp.hpp> #include <srs_protocol_rtmp.hpp>
#include <srs_protocol_handshake.hpp> #include <srs_protocol_handshake.hpp>
#ifdef SRS_AUTO_SSL
using namespace srs; using namespace srs;
#endif
#endif #endif

Loading…
Cancel
Save