AI: Refine utests.

This commit is contained in:
OSSRS-AI 2025-10-18 23:12:52 -04:00 committed by winlin
parent f86c1348b1
commit 2913d5b827
51 changed files with 140 additions and 139 deletions

22
trunk/configure vendored
View File

@ -375,20 +375,18 @@ fi
#
# utest, the unit-test cases of srs, base on gtest1.6
if [[ $SRS_UTEST == YES ]]; then
MODULE_FILES=("srs_utest" "srs_utest_amf0" "srs_utest_kernel" "srs_utest_core"
MODULE_FILES=("srs_utest" "srs_utest_amf0" "srs_utest_kernel" "srs_utest_core" "srs_utest_srt"
"srs_utest_config" "srs_utest_rtmp" "srs_utest_http" "srs_utest_avc" "srs_utest_reload"
"srs_utest_mp4" "srs_utest_service" "srs_utest_app_rtc2rtmp" "srs_utest_rtc" "srs_utest_config2"
"srs_utest_config3" "srs_utest_config4" "srs_utest_protocol" "srs_utest_protocol2" "srs_utest_kernel2"
"srs_utest_st" "srs_utest_rtc2" "srs_utest_rtc3" "srs_utest_fmp4" "srs_utest_source_lock"
"srs_utest_stream_token" "srs_utest_rtc_recv_track" "srs_utest_st2" "srs_utest_hevc_structs"
"srs_utest_coworkers" "srs_utest_pithy_print" "srs_utest_kernel3" "srs_utest_protocol4"
"srs_utest_protocol3" "srs_utest_app" "srs_utest_app2" "srs_utest_app3" "srs_utest_app4"
"srs_utest_app5" "srs_utest_app6" "srs_utest_app7" "srs_utest_app8" "srs_utest_app9"
"srs_utest_app10" "srs_utest_app11" "srs_utest_app15" "srs_utest_app16" "srs_utest_app17"
"srs_utest_mock" "srs_utest_rtc_playstream" "srs_utest_rtc_publishstream" "srs_utest_rtc_conn"
"srs_utest_rtmp_conn")
# Always include SRT utest
MODULE_FILES+=("srs_utest_srt")
"srs_utest_protocol" "srs_utest_protocol2" "srs_utest_kernel2" "srs_utest_st" "srs_utest_fmp4"
"srs_utest_source_lock" "srs_utest_stream_token" "srs_utest_rtc_recv_track" "srs_utest_st2"
"srs_utest_hevc_structs" "srs_utest_coworkers" "srs_utest_pithy_print" "srs_utest_protocol3"
"srs_utest_app" "srs_utest_mock" "srs_utest_rtc_playstream" "srs_utest_rtc_publishstream"
"srs_utest_rtc_conn" "srs_utest_rtmp_conn")
MODULE_FILES+=("srs_utest_ai01" "srs_utest_ai02" "srs_utest_ai03" "srs_utest_ai04" "srs_utest_ai05"
"srs_utest_ai06" "srs_utest_ai07" "srs_utest_ai08" "srs_utest_ai09" "srs_utest_ai10" "srs_utest_ai11"
"srs_utest_ai12" "srs_utest_ai13" "srs_utest_ai14" "srs_utest_ai15" "srs_utest_ai16" "srs_utest_ai17"
"srs_utest_ai18" "srs_utest_ai19")
if [[ $SRS_GB28181 == YES ]]; then
MODULE_FILES+=("srs_utest_gb28181" "srs_utest_app14")
fi

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_config.hpp>
#include <srs_utest_ai01.hpp>
using namespace std;

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_CONFIG3_HPP
#define SRS_UTEST_CONFIG3_HPP
#ifndef SRS_UTEST_AI01_HPP
#define SRS_UTEST_AI01_HPP
/*
#include <srs_utest_config3.hpp>
#include <srs_utest_ai01.hpp>
*/
#include <srs_utest_config.hpp>

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_config4.hpp>
#include <srs_utest_ai02.hpp>
using namespace std;

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_RTC3_HPP
#define SRS_UTEST_RTC3_HPP
#ifndef SRS_UTEST_AI02_HPP
#define SRS_UTEST_AI02_HPP
/*
#include <srs_utest_rtc3.hpp>
#include <srs_utest_ai02.hpp>
*/
#include <srs_utest.hpp>

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_rtc2.hpp>
#include <srs_utest_ai03.hpp>
#include <srs_app_rtc_source.hpp>
#include <srs_core_autofree.hpp>

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_RTC2_HPP
#define SRS_UTEST_RTC2_HPP
#ifndef SRS_UTEST_AI03_HPP
#define SRS_UTEST_AI03_HPP
/*
#include <srs_utest_rtc2.hpp>
#include <srs_utest_ai03.hpp>
*/
#include <srs_utest.hpp>

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_rtc3.hpp>
#include <srs_utest_ai04.hpp>
#include <srs_app_rtc_source.hpp>
#include <srs_core_autofree.hpp>

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_CONFIG4_HPP
#define SRS_UTEST_CONFIG4_HPP
#ifndef SRS_UTEST_AI04_HPP
#define SRS_UTEST_AI04_HPP
/*
#include <srs_utest_config4.hpp>
#include <srs_utest_ai04.hpp>
*/
#include <srs_utest.hpp>

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_kernel3.hpp>
#include <srs_utest_ai05.hpp>
#include <srs_app_utility.hpp>
#include <srs_core_time.hpp>

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_KERNEL3_HPP
#define SRS_UTEST_KERNEL3_HPP
#ifndef SRS_UTEST_AI05_HPP
#define SRS_UTEST_AI05_HPP
/*
#include <srs_utest_kernel3.hpp>
#include <srs_utest_ai05.hpp>
*/
#include <srs_utest.hpp>

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_protocol4.hpp>
#include <srs_utest_ai06.hpp>
using namespace std;

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_PROTOCOL4_HPP
#define SRS_UTEST_PROTOCOL4_HPP
#ifndef SRS_UTEST_AI06_HPP
#define SRS_UTEST_AI06_HPP
/*
#include <srs_utest_protocol4.hpp>
#include <srs_utest_ai06.hpp>
*/
#include <srs_utest.hpp>

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app2.hpp>
#include <srs_utest_ai07.hpp>
#include <srs_app_circuit_breaker.hpp>
#include <srs_app_rtc_source.hpp>

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP2_HPP
#define SRS_UTEST_APP2_HPP
#ifndef SRS_UTEST_AI07_HPP
#define SRS_UTEST_AI07_HPP
/*
#include <srs_utest_app2.hpp>
#include <srs_utest_ai07.hpp>
*/
#include <srs_utest.hpp>

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app3.hpp>
#include <srs_utest_ai08.hpp>
using namespace std;

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP3_HPP
#define SRS_UTEST_APP3_HPP
#ifndef SRS_UTEST_AI08_HPP
#define SRS_UTEST_AI08_HPP
/*
#include <srs_utest_app3.hpp>
#include <srs_utest_ai08.hpp>
*/
#include <srs_utest.hpp>
@ -18,7 +18,7 @@
#include <srs_protocol_format.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_app4.hpp>
#include <srs_utest_ai09.hpp>
// Forward declarations
class SrsMediaPacket;

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app4.hpp>
#include <srs_utest_ai09.hpp>
using namespace std;

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP4_HPP
#define SRS_UTEST_APP4_HPP
#ifndef SRS_UTEST_AI09_HPP
#define SRS_UTEST_AI09_HPP
/*
#include <srs_utest_app4.hpp>
#include <srs_utest_ai09.hpp>
*/
#include <srs_utest.hpp>

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app5.hpp>
#include <srs_utest_ai10.hpp>
using namespace std;
@ -17,7 +17,7 @@ using namespace std;
#include <srs_kernel_rtc_rtp.hpp>
#include <srs_protocol_format.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
// Helper functions
SrsRtpPacket *create_test_rtp_packet(uint16_t seq, uint32_t ts, uint32_t ssrc, bool marker)

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP5_HPP
#define SRS_UTEST_APP5_HPP
#ifndef SRS_UTEST_AI10_HPP
#define SRS_UTEST_AI10_HPP
/*
#include <srs_utest_app5.hpp>
#include <srs_utest_ai10.hpp>
*/
#include <srs_utest.hpp>
@ -19,7 +19,7 @@
#include <srs_protocol_amf0.hpp>
#include <srs_protocol_format.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_app4.hpp>
#include <srs_utest_ai09.hpp>
// Forward declarations
class SrsMediaPacket;

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
using namespace std;
@ -15,7 +15,7 @@ using namespace std;
#include <srs_app_srt_source.hpp>
#include <srs_kernel_error.hpp>
#include <srs_protocol_sdp.hpp>
#include <srs_utest_app2.hpp>
#include <srs_utest_ai07.hpp>
// Mock ISrsResourceManager implementation
MockResourceManagerForBindSession::MockResourceManagerForBindSession()

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP6_HPP
#define SRS_UTEST_APP6_HPP
#ifndef SRS_UTEST_AI11_HPP
#define SRS_UTEST_AI11_HPP
/*
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
*/
#include <srs_utest.hpp>
@ -22,7 +22,7 @@
#include <srs_app_srt_source.hpp>
#include <srs_app_statistic.hpp>
#include <srs_protocol_sdp.hpp>
#include <srs_utest_app2.hpp>
#include <srs_utest_ai07.hpp>
#include <srs_utest_protocol3.hpp>
// Mock ISrsResourceManager for testing SrsGbMediaTcpConn::bind_session

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app7.hpp>
#include <srs_utest_ai12.hpp>
using namespace std;
@ -14,8 +14,8 @@ using namespace std;
#include <srs_kernel_rtc_rtp.hpp>
#include <srs_protocol_rtc_stun.hpp>
#include <srs_protocol_sdp.hpp>
#include <srs_utest_app5.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai10.hpp>
#include <srs_utest_ai11.hpp>
// Forward declarations for H.264 SDP functions (defined in srs_app_rtc_conn.cpp)
extern bool srs_sdp_has_h264_profile(const SrsMediaPayloadType &payload_type, const string &profile);

View File

@ -4,20 +4,20 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP7_HPP
#define SRS_UTEST_APP7_HPP
#ifndef SRS_UTEST_AI12_HPP
#define SRS_UTEST_AI12_HPP
/*
#include <srs_utest_app7.hpp>
#include <srs_utest_ai12.hpp>
*/
#include <srs_utest.hpp>
#include <srs_app_rtc_conn.hpp>
#include <srs_app_rtc_source.hpp>
#include <srs_kernel_rtc_queue.hpp>
#include <srs_utest_app2.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_kernel3.hpp>
#include <srs_utest_ai07.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_ai05.hpp>
#include <srs_utest_service.hpp>
// Mock video recv track for testing check_send_nacks

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app8.hpp>
#include <srs_utest_ai13.hpp>
using namespace std;

View File

@ -4,15 +4,18 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP8_HPP
#define SRS_UTEST_APP8_HPP
#ifndef SRS_UTEST_AI13_HPP
#define SRS_UTEST_AI13_HPP
/*
#include <srs_utest_ai13.hpp>
*/
#include <srs_utest.hpp>
#include <srs_app_factory.hpp>
#include <srs_app_hls.hpp>
#include <srs_app_rtmp_source.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_kernel.hpp>
// Extended mock app config for HLS notify testing

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app9.hpp>
#include <srs_utest_ai14.hpp>
using namespace std;
@ -20,8 +20,8 @@ using namespace std;
#include <srs_kernel_packet.hpp>
#include <srs_protocol_amf0.hpp>
#include <srs_protocol_rtmp_msg_array.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_app8.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_ai13.hpp>
#include <srs_utest_config.hpp>
#include <srs_utest_coworkers.hpp>
#include <srs_utest_protocol2.hpp>

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP9_HPP
#define SRS_UTEST_APP9_HPP
#ifndef SRS_UTEST_AI14_HPP
#define SRS_UTEST_AI14_HPP
/*
#include <srs_utest_app9.hpp>
#include <srs_utest_ai14.hpp>
*/
#include <srs_utest.hpp>
@ -24,7 +24,7 @@
#include <srs_app_statistic.hpp>
#include <srs_kernel_packet.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
#ifdef SRS_HDS
#include <srs_app_hds.hpp>
#endif

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app10.hpp>
#include <srs_utest_ai15.hpp>
using namespace std;
@ -23,8 +23,8 @@ using namespace std;
#include <srs_protocol_json.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_protocol_st.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_app9.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_ai14.hpp>
#include <sys/socket.h>
// Mock config implementation for SrsServer::listen() testing

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP10_HPP
#define SRS_UTEST_APP10_HPP
#ifndef SRS_UTEST_AI15_HPP
#define SRS_UTEST_AI15_HPP
/*
#include <srs_utest_app10.hpp>
#include <srs_utest_ai15.hpp>
*/
#include <srs_utest.hpp>
@ -19,7 +19,7 @@
#include <srs_app_security.hpp>
#include <srs_kernel_hourglass.hpp>
#include <srs_protocol_http_stack.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
// Mock config for testing SrsServer::listen()
class MockAppConfigForServerListen : public MockAppConfig

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app11.hpp>
#include <srs_utest_ai16.hpp>
using namespace std;
@ -18,8 +18,8 @@ using namespace std;
#include <srs_kernel_packet.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_protocol_json.hpp>
#include <srs_utest_app10.hpp>
#include <srs_utest_app9.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai14.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_kernel.hpp>
#include <vector>

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP11_HPP
#define SRS_UTEST_APP11_HPP
#ifndef SRS_UTEST_AI16_HPP
#define SRS_UTEST_AI16_HPP
/*
#include <srs_utest_app11.hpp>
#include <srs_utest_ai16.hpp>
*/
#include <srs_utest.hpp>
@ -19,7 +19,7 @@
#include <srs_app_server.hpp>
#include <srs_protocol_http_conn.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
// Mock request class for testing SrsBufferCache
class MockBufferCacheRequest : public ISrsRequest

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app15.hpp>
#include <srs_utest_ai17.hpp>
using namespace std;
@ -19,10 +19,10 @@ using namespace std;
#include <srs_kernel_error.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_protocol_json.hpp>
#include <srs_utest_app10.hpp>
#include <srs_utest_app11.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_app14.hpp>
#include <srs_utest_app8.hpp>
#include <srs_utest_ai13.hpp>
#include <srs_utest_coworkers.hpp>
#include <srs_utest_fmp4.hpp>
#include <srs_utest_http.hpp>

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP15_HPP
#define SRS_UTEST_APP15_HPP
#ifndef SRS_UTEST_AI17_HPP
#define SRS_UTEST_AI17_HPP
/*
#include <srs_utest_app15.hpp>
#include <srs_utest_ai17.hpp>
*/
#include <srs_utest.hpp>
@ -24,9 +24,9 @@
#include <srs_protocol_http_conn.hpp>
#include <srs_protocol_http_stack.hpp>
#include <srs_protocol_sdp.hpp>
#include <srs_utest_app10.hpp>
#include <srs_utest_app11.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_ai11.hpp>
// Mock ISrsMpdWriter for testing MPD fragment generation
class MockMpdWriter : public ISrsMpdWriter

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app16.hpp>
#include <srs_utest_ai18.hpp>
using namespace std;

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP16_HPP
#define SRS_UTEST_APP16_HPP
#ifndef SRS_UTEST_AI18_HPP
#define SRS_UTEST_AI18_HPP
/*
#include <srs_utest_app16.hpp>
#include <srs_utest_ai18.hpp>
*/
#include <srs_utest.hpp>
@ -18,9 +18,9 @@
#include <srs_app_rtc_conn.hpp>
#include <srs_app_stream_token.hpp>
#include <srs_protocol_srt.hpp>
#include <srs_utest_app10.hpp>
#include <srs_utest_app11.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_ai11.hpp>
// Mock ISrsSrtSocket for testing SrsSrtConnection
class MockSrtSocket : public ISrsSrtSocket

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app17.hpp>
#include <srs_utest_ai19.hpp>
using namespace std;
@ -29,7 +29,7 @@ using namespace std;
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_coworkers.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_kernel3.hpp>
#include <srs_utest_ai05.hpp>
// Mock ISrsAppConfig implementation
MockAppConfigForUdpCaster::MockAppConfigForUdpCaster()

View File

@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
//
#ifndef SRS_UTEST_APP17_HPP
#define SRS_UTEST_APP17_HPP
#ifndef SRS_UTEST_AI19_HPP
#define SRS_UTEST_AI19_HPP
/*
#include <srs_utest_app17.hpp>
#include <srs_utest_ai19.hpp>
*/
#include <srs_utest.hpp>
@ -24,9 +24,9 @@
#include <srs_protocol_http_client.hpp>
#include <srs_protocol_raw_avc.hpp>
#include <srs_protocol_rtmp_conn.hpp>
#include <srs_utest_app10.hpp>
#include <srs_utest_app11.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_kernel.hpp>
// Mock ISrsAppConfig for testing SrsUdpCasterListener

View File

@ -18,10 +18,10 @@ using namespace std;
#include <srs_kernel_packet.hpp>
#include <srs_kernel_ts.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_utest_app2.hpp>
#include <srs_utest_app3.hpp>
#include <srs_utest_app5.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai07.hpp>
#include <srs_utest_ai08.hpp>
#include <srs_utest_ai10.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_config.hpp>
#include <srs_utest_coworkers.hpp>

View File

@ -17,7 +17,7 @@
#endif
#include <srs_app_stream_bridge.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
// Mock frame target for testing SrsSrtFrameBuilder
class MockSrtFrameTarget : public ISrsFrameTarget

View File

@ -20,8 +20,8 @@ using namespace std;
#include <srs_kernel_utility.hpp>
#include <srs_protocol_amf0.hpp>
#include <srs_protocol_utility.hpp>
#include <srs_utest_app10.hpp>
#include <srs_utest_app11.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_config.hpp>
#include <srs_utest_fmp4.hpp>
#include <srs_utest_kernel.hpp>

View File

@ -35,7 +35,7 @@
#include <srs_protocol_rtsp_stack.hpp>
#endif
#include <srs_utest_app12.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
// Mock request class for testing edge upstream
class MockEdgeRequest : public ISrsRequest

View File

@ -24,7 +24,7 @@ using namespace std;
#include <srs_protocol_rtc_stun.hpp>
#include <srs_protocol_rtmp_conn.hpp>
#include <srs_protocol_sdp.hpp>
#include <srs_utest_app11.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_protocol.hpp>

View File

@ -23,8 +23,8 @@
#include <srs_protocol_http_stack.hpp>
#include <srs_protocol_raw_avc.hpp>
#include <srs_protocol_rtmp_conn.hpp>
#include <srs_utest_app11.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_ai11.hpp>
#ifdef SRS_RTSP
#include <srs_app_rtsp_conn.hpp>

View File

@ -15,7 +15,7 @@
#include <srs_kernel_rtc_rtp.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_app4.hpp>
#include <srs_utest_ai09.hpp>
#include <srs_utest_service.hpp>
#include <vector>

View File

@ -15,7 +15,7 @@
#include <srs_kernel_rtc_rtp.hpp>
#include <srs_protocol_conn.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_protocol3.hpp>
#include <srs_utest_service.hpp>

View File

@ -30,7 +30,7 @@
#include <srs_app_stream_token.hpp>
#include <srs_kernel_error.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_service.hpp>

View File

@ -10,7 +10,7 @@
#include <srs_app_rtc_source.hpp>
#include <srs_kernel_error.hpp>
#include <srs_utest_app.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_mock.hpp>
// This test is used to verify the basic workflow of the RTC play stream.

View File

@ -26,7 +26,7 @@
#include <srs_app_rtc_conn.hpp>
#include <srs_app_rtc_source.hpp>
#include <srs_kernel_error.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_mock.hpp>
// This test is used to verify the basic workflow of the RTC publish stream.

View File

@ -28,10 +28,10 @@
#include <srs_protocol_io.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_protocol_st.hpp>
#include <srs_utest_app10.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_app13.hpp>
#include <srs_utest_app16.hpp>
#include <srs_utest_app6.hpp>
#include <srs_utest_ai18.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_service.hpp>