AI: Refine utest file rules.

This commit is contained in:
OSSRS-AI 2025-10-23 09:44:24 -04:00 committed by winlin
parent 2893f43327
commit 2fb216e86d
97 changed files with 133 additions and 125 deletions

View File

@ -304,6 +304,14 @@ build_and_development:
working_directory: "trunk/3rdparty/srs-bench"
testing:
utest_file_naming:
description: "Unit test file naming indicates ownership and maintenance responsibility"
patterns:
- "srs_utest_ai*.cpp - AI-managed, AI has full autonomy"
- "srs_utest_workflow_*.cpp - Human-dominated with AI help, human maintains"
- "srs_utest_manual_*.cpp - Human-written, AI should NOT modify without permission"
error_handling_macros:
- Use HELPER_EXPECT_SUCCESS(x) when expecting a function to succeed (returns srs_success)
- Use HELPER_EXPECT_FAILED(x) when expecting a function to fail (returns non-srs_success error)

20
trunk/configure vendored
View File

@ -375,20 +375,20 @@ 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" "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_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" "srs_utest_srt_conn" "srs_utest_http_conn")
MODULE_FILES=("srs_utest" "srs_utest_manual_amf0" "srs_utest_manual_kernel" "srs_utest_manual_core" "srs_utest_manual_srt"
"srs_utest_manual_config" "srs_utest_manual_rtmp" "srs_utest_manual_http" "srs_utest_manual_avc" "srs_utest_manual_reload"
"srs_utest_manual_mp4" "srs_utest_manual_service" "srs_utest_manual_app_rtc2rtmp" "srs_utest_manual_rtc" "srs_utest_manual_config2"
"srs_utest_manual_protocol" "srs_utest_manual_protocol2" "srs_utest_manual_kernel2" "srs_utest_manual_st" "srs_utest_manual_fmp4"
"srs_utest_manual_source_lock" "srs_utest_manual_stream_token" "srs_utest_manual_rtc_recv_track" "srs_utest_manual_st2"
"srs_utest_manual_hevc_structs" "srs_utest_manual_coworkers" "srs_utest_manual_pithy_print" "srs_utest_manual_protocol3"
"srs_utest_manual_app" "srs_utest_manual_mock" "srs_utest_workflow_rtc_playstream" "srs_utest_workflow_rtc_publishstream"
"srs_utest_workflow_rtc_conn" "srs_utest_workflow_rtmp_conn" "srs_utest_workflow_srt_conn" "srs_utest_workflow_http_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" "srs_utest_ai20" "srs_utest_forward")
"srs_utest_ai18" "srs_utest_ai19" "srs_utest_ai20" "srs_utest_workflow_forward")
if [[ $SRS_GB28181 == YES ]]; then
MODULE_FILES+=("srs_utest_gb28181" "srs_utest_ai23")
MODULE_FILES+=("srs_utest_manual_gb28181" "srs_utest_ai23")
fi
if [[ $SRS_RTSP == YES ]]; then
MODULE_FILES+=("srs_utest_ai21" "srs_utest_ai22")

View File

@ -33,7 +33,7 @@ using namespace std;
#include <srs_protocol_conn.hpp>
// Include headers for all the mocks.
#include <srs_utest_mock.hpp>
#include <srs_utest_manual_mock.hpp>
// we add an empty macro for upp to show the smart tips.
#define VOID

View File

@ -10,6 +10,6 @@
/*
#include <srs_utest_ai01.hpp>
*/
#include <srs_utest_config.hpp>
#include <srs_utest_manual_config.hpp>
#endif

View File

@ -12,7 +12,7 @@ using namespace std;
#include <srs_app_utility.hpp>
#include <srs_kernel_error.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_utest_config.hpp>
#include <srs_utest_manual_config.hpp>
VOID TEST(ConfigHttpsStreamTest, CheckHttpsStreamListensDefault)
{

View File

@ -11,7 +11,7 @@
#include <srs_kernel_error.hpp>
#include <srs_kernel_rtc_rtp.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_service.hpp>
#include <chrono>
#include <vector>

View File

@ -10,7 +10,7 @@
#include <srs_core_autofree.hpp>
#include <srs_kernel_rtc_rtp.hpp>
#include <srs_protocol_st.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
// Helper function to create a mock RTP packet for testing
SrsRtpPacket *mock_create_audio_rtp_packet(uint16_t sequence, uint32_t timestamp, const char *payload_data = NULL, int payload_size = 10)

View File

@ -23,7 +23,7 @@
#include <srs_kernel_st.hpp>
#include <srs_kernel_stream.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_protocol.hpp>
#include <algorithm>

View File

@ -16,7 +16,7 @@
#include <srs_kernel_io.hpp>
#include <srs_kernel_resource.hpp>
#include <srs_kernel_rtc_queue.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
// Mock classes for IO testing
class MockSrsReader : public ISrsReader

View File

@ -19,7 +19,7 @@ using namespace std;
#include <srs_protocol_rtmp_conn.hpp>
#include <srs_protocol_rtp.hpp>
#include <srs_protocol_st.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_manual_http.hpp>
VOID TEST(HTTPClientTest, HTTPClientUtility)
{

View File

@ -23,7 +23,7 @@
#include <srs_app_statistic.hpp>
#include <srs_protocol_sdp.hpp>
#include <srs_utest_ai07.hpp>
#include <srs_utest_protocol3.hpp>
#include <srs_utest_manual_protocol3.hpp>
// Mock ISrsResourceManager for testing SrsGbMediaTcpConn::bind_session
class MockResourceManagerForBindSession : public ISrsResourceManager

View File

@ -18,7 +18,7 @@
#include <srs_utest_ai05.hpp>
#include <srs_utest_ai07.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_service.hpp>
// Mock video recv track for testing check_send_nacks
class MockRtcVideoRecvTrackForNack : public SrsRtcVideoRecvTrack

View File

@ -15,7 +15,7 @@ using namespace std;
#include <srs_kernel_file.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_protocol_amf0.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
// Mock app config implementation for HLS notify testing
MockAppConfigForHlsNotify::MockAppConfigForHlsNotify()

View File

@ -16,7 +16,7 @@
#include <srs_app_hls.hpp>
#include <srs_app_rtmp_source.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
// Extended mock app config for HLS notify testing
class MockAppConfigForHlsNotify : public MockAppConfig

View File

@ -25,9 +25,9 @@ using namespace std;
#include <srs_utest_ai11.hpp>
#include <srs_utest_ai13.hpp>
#include <srs_utest_ai22.hpp>
#include <srs_utest_config.hpp>
#include <srs_utest_coworkers.hpp>
#include <srs_utest_protocol2.hpp>
#include <srs_utest_manual_config.hpp>
#include <srs_utest_manual_coworkers.hpp>
#include <srs_utest_manual_protocol2.hpp>
MockMediaPacketForJitter::MockMediaPacketForJitter(int64_t timestamp, bool is_av)
{

View File

@ -20,8 +20,8 @@ using namespace std;
#include <srs_protocol_json.hpp>
#include <srs_utest_ai14.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_http.hpp>
#include <srs_utest_manual_kernel.hpp>
#include <vector>
// External function declarations for testing

View File

@ -23,10 +23,10 @@ using namespace std;
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_ai23.hpp>
#include <srs_utest_coworkers.hpp>
#include <srs_utest_fmp4.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_coworkers.hpp>
#include <srs_utest_manual_fmp4.hpp>
#include <srs_utest_manual_http.hpp>
#include <srs_utest_manual_kernel.hpp>
// Mock ISrsMpdWriter implementation
MockMpdWriter::MockMpdWriter()

View File

@ -28,8 +28,8 @@ using namespace std;
#include <srs_protocol_http_stack.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_ai05.hpp>
#include <srs_utest_coworkers.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_manual_coworkers.hpp>
#include <srs_utest_manual_http.hpp>
// Mock ISrsAppConfig implementation
MockAppConfigForUdpCaster::MockAppConfigForUdpCaster()

View File

@ -27,7 +27,7 @@
#include <srs_utest_ai11.hpp>
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
// Mock ISrsAppConfig for testing SrsUdpCasterListener
class MockAppConfigForUdpCaster : public MockAppConfig

View File

@ -12,7 +12,7 @@ using namespace std;
#include <srs_kernel_consts.hpp>
#include <srs_kernel_error.hpp>
#include <srs_protocol_st.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_manual_mock.hpp>
#include <unistd.h>
// Mock ISrsSignalHandler implementation

View File

@ -22,8 +22,8 @@ using namespace std;
#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>
#include <srs_utest_manual_config.hpp>
#include <srs_utest_manual_coworkers.hpp>
// Mock frame target implementation
MockSrtFrameTarget::MockSrtFrameTarget()

View File

@ -22,10 +22,10 @@ using namespace std;
#include <srs_protocol_utility.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>
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_config.hpp>
#include <srs_utest_manual_fmp4.hpp>
#include <srs_utest_manual_kernel.hpp>
#include <srs_utest_manual_protocol.hpp>
// Mock request implementation
MockEdgeRequest::MockEdgeRequest(std::string vhost, std::string app, std::string stream)

View File

@ -25,9 +25,9 @@ using namespace std;
#include <srs_protocol_rtmp_conn.hpp>
#include <srs_protocol_sdp.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_http.hpp>
#include <srs_utest_manual_kernel.hpp>
#include <srs_utest_manual_protocol.hpp>
// Mock ISrsGbMuxer implementation
MockGbMuxer::MockGbMuxer()

View File

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

View File

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

View File

@ -8,7 +8,7 @@
#define SRS_UTEST_APP_HPP
/*
#include <srs_utest_app.hpp>
#include <srs_utest_manual_app.hpp>
*/
#include <srs_utest.hpp>

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_app_rtc2rtmp.hpp>
#include <srs_utest_manual_app_rtc2rtmp.hpp>
#include <srs_app_rtc_source.hpp>
#include <srs_app_stream_bridge.hpp>
@ -16,7 +16,7 @@
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_ai09.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_service.hpp>
#include <vector>
using namespace std;

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_avc.hpp>
#include <srs_utest_manual_avc.hpp>
#include <srs_core_autofree.hpp>
#include <srs_kernel_buffer.hpp>

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_config.hpp>
#include <srs_utest_manual_config.hpp>
using namespace std;
@ -16,7 +16,7 @@ using namespace std;
#include <srs_kernel_utility.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_protocol_st.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
MockSrsConfigBuffer::MockSrsConfigBuffer(string buf)
{

View File

@ -8,7 +8,7 @@
#define SRS_UTEST_CONFIG_HPP
/*
#include <srs_utest_config.hpp>
#include <srs_utest_manual_config.hpp>
*/
#include <srs_utest.hpp>

View File

@ -3,13 +3,13 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_config2.hpp>
#include <srs_utest_manual_config2.hpp>
#include <srs_app_utility.hpp>
#include <srs_kernel_error.hpp>
#include <srs_kernel_file.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
VOID TEST(ConfigMainTest, CheckIncludeEmptyConfig)
{

View File

@ -10,6 +10,6 @@
/*
#include <srs_utest_config2.hpp>
*/
#include <srs_utest_config.hpp>
#include <srs_utest_manual_config.hpp>
#endif

View File

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

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_coworkers.hpp>
#include <srs_utest_manual_coworkers.hpp>
using namespace std;
@ -14,7 +14,7 @@ using namespace std;
#include <srs_kernel_utility.hpp>
#include <srs_protocol_json.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_config.hpp>
#include <srs_utest_manual_config.hpp>
// Use the config from srs_utest_config.hpp

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_fmp4.hpp>
#include <srs_utest_manual_fmp4.hpp>
#include <sstream>
using namespace std;
@ -16,7 +16,7 @@ using namespace std;
#include <srs_kernel_stream.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
// Mock class implementations
MockFmp4SrsRequest::MockFmp4SrsRequest()

View File

@ -8,7 +8,7 @@
#define SRS_UTEST_FMP4_HPP
/*
#include <srs_utest_fmp4.hpp>
#include <srs_utest_manual_fmp4.hpp>
*/
#include <srs_utest.hpp>

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_gb28181.hpp>
#include <srs_utest_manual_gb28181.hpp>
#include <sstream>
using namespace std;
@ -19,8 +19,8 @@ using namespace std;
#include <srs_protocol_json.hpp>
#include <srs_protocol_sdp.hpp>
#include <srs_protocol_utility.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_kernel.hpp>
#include <srs_utest_manual_protocol.hpp>
VOID TEST(KernelPSTest, PsPacketDecodePartialPesHeader)
{

View File

@ -10,6 +10,6 @@
/*
#include <srs_utest_gb28181.hpp>
*/
#include <srs_utest_http.hpp>
#include <srs_utest_manual_http.hpp>
#endif

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_http.hpp>
#include <srs_utest_manual_http.hpp>
#include <sstream>
using namespace std;
@ -16,8 +16,8 @@ using namespace std;
#include <srs_protocol_http_stack.hpp>
#include <srs_protocol_json.hpp>
#include <srs_protocol_utility.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_kernel.hpp>
#include <srs_utest_manual_protocol.hpp>
MockMSegmentsReader::MockMSegmentsReader()
{

View File

@ -8,13 +8,13 @@
#define SRS_UTEST_PROTO_STACK_HPP
/*
#include <srs_utest_http.hpp>
#include <srs_utest_manual_http.hpp>
*/
#include <srs_utest.hpp>
#include <srs_protocol_http_conn.hpp>
#include <srs_protocol_http_stack.hpp>
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_protocol.hpp>
#include <string>
using namespace std;

View File

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

View File

@ -8,7 +8,7 @@
#define SRS_UTEST_KERNEL_HPP
/*
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
*/
#include <srs_utest.hpp>

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_kernel2.hpp>
#include <srs_utest_manual_kernel2.hpp>
#include <srs_app_utility.hpp>
#include <srs_kernel_buffer.hpp>

View File

@ -12,6 +12,6 @@
*/
#include <srs_utest.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
#endif

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_mock.hpp>
#include <srs_utest_manual_mock.hpp>
#include <srs_app_caster_flv.hpp>
#include <srs_app_config.hpp>

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_mp4.hpp>
#include <srs_utest_manual_mp4.hpp>
#include <sstream>
using namespace std;
@ -12,7 +12,7 @@ using namespace std;
#include <srs_core_autofree.hpp>
#include <srs_kernel_error.hpp>
#include <srs_kernel_mp4.hpp>
#include <srs_utest_kernel.hpp>
#include <srs_utest_manual_kernel.hpp>
VOID TEST(KernelMp4Test, PrintPadding)
{

View File

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

View File

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

View File

@ -8,7 +8,7 @@
#define SRS_UTEST_PROTOCOL_HPP
/*
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_protocol.hpp>
*/
#include <srs_utest.hpp>

View File

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

View File

@ -8,8 +8,8 @@
#define SRS_UTEST_PROTOCOL2_HPP
/*
#include <srs_utest_protocol2.hpp>
#include <srs_utest_manual_protocol2.hpp>
*/
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_protocol.hpp>
#endif

View File

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

View File

@ -8,9 +8,9 @@
#define SRS_UTEST_PROTOCOL3_HPP
/*
#include <srs_utest_protocol3.hpp>
#include <srs_utest_manual_protocol3.hpp>
*/
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_protocol.hpp>
#include <srs_protocol_conn.hpp>

View File

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

View File

@ -13,7 +13,7 @@
#include <srs_utest.hpp>
#include <srs_app_reload.hpp>
#include <srs_utest_config.hpp>
#include <srs_utest_manual_config.hpp>
class MockReloadHandler : public ISrsReloadHandler
{

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_rtc.hpp>
#include <srs_utest_manual_rtc.hpp>
#include <srs_app_rtc_conn.hpp>
#include <srs_app_rtc_source.hpp>
@ -16,8 +16,8 @@
#include <srs_protocol_conn.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_protocol3.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_protocol3.hpp>
#include <srs_utest_manual_service.hpp>
#include <vector>
using namespace std;

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include "srs_utest_rtc_recv_track.hpp"
#include "srs_utest_manual_rtc_recv_track.hpp"
#include <srs_app_rtc_conn.hpp>
#include <srs_app_rtc_dtls.hpp>

View File

@ -11,6 +11,6 @@
#include <srs_utest_rtc_recv_track.hpp>
*/
#include <srs_utest.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_service.hpp>
#endif

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_rtmp.hpp>
#include <srs_utest_manual_rtmp.hpp>
#include <srs_app_st.hpp>
#include <srs_core_autofree.hpp>

View File

@ -13,7 +13,7 @@
#include <srs_utest.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_protocol.hpp>
// Mock classes for RTMP testing
class MockPacket : public SrsRtmpCommand

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_service.hpp>
#include <srs_utest_manual_service.hpp>
using namespace std;
@ -24,8 +24,8 @@ using namespace std;
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_protocol_st.hpp>
#include <srs_protocol_utility.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_protocol.hpp>
#include <srs_utest_manual_http.hpp>
#include <srs_utest_manual_protocol.hpp>
#include <st.h>
#include <sys/socket.h>

View File

@ -8,7 +8,7 @@
#define SRS_UTEST_SERVICE_HPP
/*
#include <srs_utest_service.hpp>
#include <srs_utest_manual_service.hpp>
*/
#include <srs_utest.hpp>

View File

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

View File

@ -3,7 +3,7 @@
//
// SPDX-License-Identifier: MIT
//
#include <srs_utest_srt.hpp>
#include <srs_utest_manual_srt.hpp>
#include <srs_app_srt_server.hpp>
#include <srs_core_autofree.hpp>

View File

@ -7,7 +7,7 @@
#include <srs_kernel_error.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_protocol_st.hpp>
#include <srs_utest_st.hpp>
#include <srs_utest_manual_st.hpp>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>

View File

@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_st2.hpp>
#include <srs_utest_manual_st2.hpp>
#include <srs_app_st.hpp>
#include <srs_core_autofree.hpp>

View File

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

View File

@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <srs_utest_forward.hpp>
#include <srs_utest_workflow_forward.hpp>
#include <srs_app_utility.hpp>
#include <srs_kernel_error.hpp>

View File

@ -34,7 +34,7 @@
#include <srs_app_forward.hpp>
#include <srs_app_rtmp_source.hpp>
#include <srs_protocol_rtmp_conn.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_manual_mock.hpp>
// Mock ISrsAppFactory for testing SrsForwarder
class MockAppFactoryForForwarder : public SrsAppFactory

View File

@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <srs_utest_http_conn.hpp>
#include <srs_utest_workflow_http_conn.hpp>
#include <srs_app_http_conn.hpp>
#include <srs_app_http_stream.hpp>
@ -33,9 +33,9 @@
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai16.hpp>
#include <srs_utest_ai19.hpp>
#include <srs_utest_http.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_http.hpp>
#include <srs_utest_manual_mock.hpp>
#include <srs_utest_manual_service.hpp>
// This test is used to verify the basic workflow of the HTTP connection.
// It's finished with the help of AI, but each step is manually designed

View File

@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <srs_utest_rtc_conn.hpp>
#include <srs_utest_workflow_rtc_conn.hpp>
#include <srs_app_factory.hpp>
#include <srs_app_rtc_conn.hpp>
@ -31,8 +31,8 @@
#include <srs_kernel_error.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_mock.hpp>
#include <srs_utest_manual_service.hpp>
MockProtocolUtilityForRtcConn::MockProtocolUtilityForRtcConn(std::string ip)
{

View File

@ -4,14 +4,14 @@
// SPDX-License-Identifier: MIT
//
#include <srs_utest_rtc_playstream.hpp>
#include <srs_utest_workflow_rtc_playstream.hpp>
#include <srs_app_rtc_conn.hpp>
#include <srs_app_rtc_source.hpp>
#include <srs_kernel_error.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_app.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_manual_app.hpp>
#include <srs_utest_manual_mock.hpp>
// This test is used to verify the basic workflow of the RTC play stream.
// It's finished with the help of AI, but each step is manually designed

View File

@ -21,13 +21,13 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <srs_utest_rtc_publishstream.hpp>
#include <srs_utest_workflow_rtc_publishstream.hpp>
#include <srs_app_rtc_conn.hpp>
#include <srs_app_rtc_source.hpp>
#include <srs_kernel_error.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_manual_mock.hpp>
// This test is used to verify the basic workflow of the RTC publish stream.
// It's finished with the help of AI, but each step is manually designed

View File

@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <srs_utest_rtmp_conn.hpp>
#include <srs_utest_workflow_rtmp_conn.hpp>
#include <srs_app_rtmp_conn.hpp>
#include <srs_protocol_conn.hpp>
@ -32,8 +32,8 @@
#include <srs_utest_ai15.hpp>
#include <srs_utest_ai18.hpp>
#include <srs_utest_ai22.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_mock.hpp>
#include <srs_utest_manual_service.hpp>
#include <sys/socket.h>
#include <unistd.h>

View File

@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <srs_utest_srt_conn.hpp>
#include <srs_utest_workflow_srt_conn.hpp>
#include <srs_app_srt_conn.hpp>
#include <srs_protocol_conn.hpp>
@ -29,8 +29,8 @@
#include <srs_protocol_st.hpp>
#include <srs_utest_ai11.hpp>
#include <srs_utest_ai18.hpp>
#include <srs_utest_mock.hpp>
#include <srs_utest_service.hpp>
#include <srs_utest_manual_mock.hpp>
#include <srs_utest_manual_service.hpp>
#include <sys/socket.h>
#include <unistd.h>