| Index: webrtc/video/full_stack.cc
|
| diff --git a/webrtc/video/full_stack.cc b/webrtc/video/full_stack.cc
|
| index e870c1ff14f2cd6def267d5bacb68f025fb2bad3..8a97ba8a9a13b5fbe3e27bd1d34abd6ab4fadc0d 100644
|
| --- a/webrtc/video/full_stack.cc
|
| +++ b/webrtc/video/full_stack.cc
|
| @@ -21,6 +21,29 @@ class FullStackTest : public VideoQualityTest {
|
| void RunTest(const VideoQualityTest::Params ¶ms) {
|
| RunWithAnalyzer(params);
|
| }
|
| +
|
| + void ForemanCifWithoutPacketLoss(const std::string& video_codec) {
|
| + // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif.
|
| + VideoQualityTest::Params foreman_cif = {
|
| + {352, 288, 30, 700000, 700000, 700000, video_codec, 1},
|
| + {"foreman_cif"},
|
| + {},
|
| + {"foreman_cif_net_delay_0_0_plr_0_" + video_codec, 0.0, 0.0,
|
| + kFullStackTestDurationSecs}};
|
| + RunTest(foreman_cif);
|
| + }
|
| +
|
| + void ForemanCifPlr5(const std::string& video_codec) {
|
| + VideoQualityTest::Params foreman_cif = {
|
| + {352, 288, 30, 30000, 500000, 2000000, video_codec, 1},
|
| + {"foreman_cif"},
|
| + {},
|
| + {"foreman_cif_delay_50_0_plr_5_" + video_codec, 0.0, 0.0,
|
| + kFullStackTestDurationSecs}};
|
| + foreman_cif.pipe.loss_percent = 5;
|
| + foreman_cif.pipe.queue_delay_ms = 50;
|
| + RunTest(foreman_cif);
|
| + }
|
| };
|
|
|
| // VideoQualityTest::Params params = {
|
| @@ -33,6 +56,14 @@ class FullStackTest : public VideoQualityTest {
|
| // logs // bool
|
| // };
|
|
|
| +TEST_F(FullStackTest, ForemanCifWithoutPacketLossVp9) {
|
| + ForemanCifWithoutPacketLoss("VP9");
|
| +}
|
| +
|
| +TEST_F(FullStackTest, ForemanCifPlr5Vp9) {
|
| + ForemanCifPlr5("VP9");
|
| +}
|
| +
|
| TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) {
|
| VideoQualityTest::Params paris_qcif = {
|
| {176, 144, 30, 300000, 300000, 300000, "VP8", 1},
|
|
|