diff --git a/trunk/src/utest/srs_utest_app.cpp b/trunk/src/utest/srs_utest_app.cpp index f3b8e759a..7a2f01dd7 100644 --- a/trunk/src/utest/srs_utest_app.cpp +++ b/trunk/src/utest/srs_utest_app.cpp @@ -307,8 +307,6 @@ VOID TEST(AppCoroutineTest, StartThread) srs_freep(err); } -#endif - VOID TEST(AppFragmentTest, CheckDuration) { if (true) { @@ -377,9 +375,5 @@ VOID TEST(AppFragmentTest, CheckDuration) } } -#define MOCK_LISTEN_PORT 11935 - -VOID TEST(TCPServerTest, PingPong) -{ -} +#endif diff --git a/trunk/src/utest/srs_utest_service.cpp b/trunk/src/utest/srs_utest_service.cpp index 343c21755..b4486cc71 100644 --- a/trunk/src/utest/srs_utest_service.cpp +++ b/trunk/src/utest/srs_utest_service.cpp @@ -39,4 +39,10 @@ VOID TEST(ServiceTimeTest, TimeUnit) EXPECT_EQ(3600*1000*1000LL, SRS_UTIME_HOURS); } +#define MOCK_LISTEN_PORT 11935 + +VOID TEST(TCPServerTest, PingPong) +{ +} + #endif