Set video codecs with PeerConfigurer in tests.
Bug: b/192821182 Change-Id: I78f68acb22530f533b5848b20e14d9990d8a554a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226240 Reviewed-by: Andrey Logvin <landrey@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34482}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
7bba23e57e
commit
9d58f97f90
@ -147,6 +147,8 @@ TEST_F(PeerConnectionE2EQualityTestSmokeTest, MAYBE_Smoke) {
|
||||
audio.sampling_frequency_in_hz = 48000;
|
||||
audio.sync_group = "alice-media";
|
||||
alice->SetAudioConfig(std::move(audio));
|
||||
alice->SetVideoCodecs(
|
||||
{VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})});
|
||||
});
|
||||
AddPeer(network_links.second, [](PeerConfigurer* charlie) {
|
||||
charlie->SetName("charlie");
|
||||
@ -161,6 +163,8 @@ TEST_F(PeerConnectionE2EQualityTestSmokeTest, MAYBE_Smoke) {
|
||||
audio.input_file_name =
|
||||
test::ResourcePath("pc_quality_smoke_test_bob_source", "wav");
|
||||
charlie->SetAudioConfig(std::move(audio));
|
||||
charlie->SetVideoCodecs(
|
||||
{VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})});
|
||||
});
|
||||
fixture()->AddQualityMetricsReporter(
|
||||
std::make_unique<StatsBasedNetworkQualityMetricsReporter>(
|
||||
@ -169,8 +173,6 @@ TEST_F(PeerConnectionE2EQualityTestSmokeTest, MAYBE_Smoke) {
|
||||
{"charlie", network_links.second->endpoints()}}),
|
||||
network_emulation()));
|
||||
RunParams run_params(TimeDelta::Seconds(2));
|
||||
run_params.video_codecs = {
|
||||
VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})};
|
||||
run_params.use_flex_fec = true;
|
||||
run_params.use_ulp_fec = true;
|
||||
run_params.video_encoder_bitrate_multiplier = 1.1;
|
||||
@ -217,8 +219,13 @@ TEST_F(PeerConnectionE2EQualityTestSmokeTest, MAYBE_ChangeNetworkConditions) {
|
||||
video.stream_label = "alice-video";
|
||||
video.sync_group = "alice-media";
|
||||
alice->AddVideoConfig(std::move(video));
|
||||
alice->SetVideoCodecs(
|
||||
{VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})});
|
||||
});
|
||||
AddPeer(bob_network, [](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs(
|
||||
{VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})});
|
||||
});
|
||||
AddPeer(bob_network, [](PeerConfigurer* bob) {});
|
||||
fixture()->AddQualityMetricsReporter(
|
||||
std::make_unique<StatsBasedNetworkQualityMetricsReporter>(
|
||||
std::map<std::string, std::vector<EmulatedEndpoint*>>(
|
||||
@ -233,8 +240,6 @@ TEST_F(PeerConnectionE2EQualityTestSmokeTest, MAYBE_ChangeNetworkConditions) {
|
||||
});
|
||||
|
||||
RunParams run_params(TimeDelta::Seconds(2));
|
||||
run_params.video_codecs = {
|
||||
VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})};
|
||||
run_params.use_flex_fec = true;
|
||||
run_params.use_ulp_fec = true;
|
||||
run_params.video_encoder_bitrate_multiplier = 1.1;
|
||||
@ -323,7 +328,6 @@ TEST_F(PeerConnectionE2EQualityTestSmokeTest, MAYBE_Simulcast) {
|
||||
});
|
||||
AddPeer(network_links.second, [](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(2));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
RunAndCheckEachVideoStreamReceivedFrames(run_params);
|
||||
}
|
||||
|
||||
@ -350,10 +354,12 @@ TEST_F(PeerConnectionE2EQualityTestSmokeTest, MAYBE_Svc) {
|
||||
audio.input_file_name =
|
||||
test::ResourcePath("pc_quality_smoke_test_alice_source", "wav");
|
||||
alice->SetAudioConfig(std::move(audio));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(cricket::kVp9CodecName)});
|
||||
});
|
||||
AddPeer(network_links.second, [](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(cricket::kVp9CodecName)});
|
||||
});
|
||||
AddPeer(network_links.second, [](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(2));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp9CodecName)};
|
||||
RunAndCheckEachVideoStreamReceivedFrames(run_params);
|
||||
}
|
||||
|
||||
@ -384,11 +390,14 @@ TEST_F(PeerConnectionE2EQualityTestSmokeTest, MAYBE_HighBitrate) {
|
||||
test::ResourcePath("pc_quality_smoke_test_alice_source", "wav");
|
||||
audio.sampling_frequency_in_hz = 48000;
|
||||
alice->SetAudioConfig(std::move(audio));
|
||||
alice->SetVideoCodecs(
|
||||
{VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})});
|
||||
});
|
||||
AddPeer(network_links.second, [](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs(
|
||||
{VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})});
|
||||
});
|
||||
AddPeer(network_links.second, [](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(2));
|
||||
run_params.video_codecs = {
|
||||
VideoCodecConfig(cricket::kVp9CodecName, {{"profile-id", "0"}})};
|
||||
RunAndCheckEachVideoStreamReceivedFrames(run_params);
|
||||
}
|
||||
|
||||
|
@ -121,12 +121,18 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Net_Delay_0_0_Plr_0_VP9) {
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("foreman_cif"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId, VP9ProfileToString(VP9Profile::kProfile0)}})};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -149,12 +155,18 @@ TEST(PCGenericDescriptorTest,
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("foreman_cif"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId, VP9ProfileToString(VP9Profile::kProfile0)}})};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -184,12 +196,18 @@ TEST(PCFullStackTest, MAYBE_Pc_Generator_Net_Delay_0_0_Plr_0_VP9Profile2) {
|
||||
auto frame_generator = CreateSquareFrameGenerator(
|
||||
video, test::FrameGeneratorInterface::OutputType::kI010);
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile2)}})});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile2)}})});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId, VP9ProfileToString(VP9Profile::kProfile2)}})};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -243,7 +261,6 @@ TEST(PCFullStackTest, Pc_Net_Delay_0_0_Plr_0) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -267,7 +284,6 @@ TEST(PCGenericDescriptorTest,
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -297,7 +313,6 @@ TEST(PCGenericDescriptorTest,
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -322,7 +337,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Link_150kbps_Net_Delay_0_0_Plr_0) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -348,7 +362,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Link_130kbps_Delay100ms_Loss1_Ulpfec) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = true;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -374,7 +387,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Link_50kbps_Delay100ms_Loss1_Ulpfec) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = true;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -402,7 +414,6 @@ TEST(PCFullStackTest,
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
run_params.video_encoder_bitrate_multiplier = 1.30;
|
||||
@ -434,7 +445,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Link_250kbps_Delay100ms_10pkts_Loss1) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
run_params.video_encoder_bitrate_multiplier = 1.30;
|
||||
@ -461,7 +471,6 @@ TEST(PCGenericDescriptorTest,
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -487,7 +496,6 @@ TEST(PCGenericDescriptorTest,
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = true;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -512,7 +520,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Delay_50_0_Plr_5_Flexfec) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = true;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -538,7 +545,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_500kbps_Delay_50_0_Plr_3_Flexfec) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = true;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -564,7 +570,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_500kbps_Delay_50_0_Plr_3_Ulpfec) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = true;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -585,10 +590,12 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Net_Delay_0_0_Plr_0_H264) {
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("foreman_cif"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kH264CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -614,10 +621,12 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_30kbps_Net_Delay_0_0_Plr_0_H264) {
|
||||
bitrate_settings.start_bitrate_bps = 30000;
|
||||
bitrate_settings.max_bitrate_bps = 30000;
|
||||
alice->SetBitrateSettings(bitrate_settings);
|
||||
alice->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kH264CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -640,10 +649,12 @@ TEST(PCGenericDescriptorTest,
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("foreman_cif"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kH264CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -668,10 +679,12 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Delay_50_0_Plr_5_H264_Sps_Pps_Idr) {
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("foreman_cif"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kH264CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -693,10 +706,12 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_Delay_50_0_Plr_5_H264_Flexfec) {
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("foreman_cif"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kH264CodecName)};
|
||||
run_params.use_flex_fec = true;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -720,10 +735,12 @@ TEST(PCFullStackTest, DISABLED_Pc_Foreman_Cif_Delay_50_0_Plr_5_H264_Ulpfec) {
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("foreman_cif"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(cricket::kH264CodecName)});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kH264CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = true;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -749,7 +766,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_500kbps) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -775,7 +791,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_500kbps_32pkts_Queue) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -801,7 +816,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_500kbps_100ms) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -828,7 +842,6 @@ TEST(PCGenericDescriptorTest,
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -875,7 +888,6 @@ TEST(PCFullStackTest, Pc_Foreman_Cif_1000kbps_100ms_32pkts_Queue) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -902,7 +914,6 @@ TEST(PCFullStackTest, Pc_Conference_Motion_Hd_2000kbps_100ms_32pkts_Queue) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1052,12 +1063,18 @@ TEST(PCFullStackTest, Pc_Conference_Motion_Hd_2000kbps_100ms_32pkts_Queue_Vp9) {
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("ConferenceMotion_1280_720_50"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId, VP9ProfileToString(VP9Profile::kProfile0)}})};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1082,7 +1099,6 @@ TEST(PCFullStackTest, Pc_Screenshare_Slides_No_Conference_Mode) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1105,7 +1121,6 @@ TEST(PCFullStackTest, Pc_Screenshare_Slides) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
run_params.use_conference_mode = true;
|
||||
@ -1134,7 +1149,6 @@ TEST(PCFullStackTest, Pc_Screenshare_Slides_Simulcast_No_Conference_Mode) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1160,7 +1174,6 @@ TEST(PCFullStackTest, Pc_Screenshare_Slides_Simulcast) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
run_params.use_conference_mode = true;
|
||||
@ -1364,12 +1377,18 @@ TEST(PCFullStackTest, Pc_Screenshare_Slides_Vp9_3sl_High_Fps) {
|
||||
auto frame_generator = CreateScreenShareFrameGenerator(
|
||||
video, ScreenShareConfig(TimeDelta::Seconds(10)));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId, VP9ProfileToString(VP9Profile::kProfile0)}})};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1393,12 +1412,18 @@ TEST(PCFullStackTest, Pc_Vp9svc_3sl_High) {
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("ConferenceMotion_1280_720_50"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId, VP9ProfileToString(VP9Profile::kProfile0)}})};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1422,12 +1447,18 @@ TEST(PCFullStackTest, Pc_Vp9svc_3sl_Low) {
|
||||
auto frame_generator = CreateFromYuvFileFrameGenerator(
|
||||
video, ClipNameToClipPath("ConferenceMotion_1280_720_50"));
|
||||
alice->AddVideoConfig(std::move(video), std::move(frame_generator));
|
||||
alice->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
[](PeerConfigurer* bob) {
|
||||
bob->SetVideoCodecs({VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId,
|
||||
VP9ProfileToString(VP9Profile::kProfile0)}})});
|
||||
});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(
|
||||
/*name=*/cricket::kVp9CodecName, /*required_params=*/{
|
||||
{kVP9FmtpProfileId, VP9ProfileToString(VP9Profile::kProfile0)}})};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1552,7 +1583,6 @@ TEST(PCFullStackTest, MAYBE_Pc_Simulcast_HD_High) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1578,7 +1608,6 @@ TEST(PCFullStackTest, Pc_Simulcast_Vp8_3sl_High) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
@ -1603,7 +1632,6 @@ TEST(PCFullStackTest, Pc_Simulcast_Vp8_3sl_Low) {
|
||||
},
|
||||
[](PeerConfigurer* bob) {});
|
||||
RunParams run_params(TimeDelta::Seconds(kTestDurationSec));
|
||||
run_params.video_codecs = {VideoCodecConfig(cricket::kVp8CodecName)};
|
||||
run_params.use_flex_fec = false;
|
||||
run_params.use_ulp_fec = false;
|
||||
fixture->Run(std::move(run_params));
|
||||
|
Reference in New Issue
Block a user