From 88b0a2292a1f0331055cdfb193dacc43526a2367 Mon Sep 17 00:00:00 2001 From: asapersson Date: Fri, 12 Feb 2016 13:16:43 -0800 Subject: [PATCH] Add VP9 to full stack tests. BUG= Review URL: https://codereview.webrtc.org/1691953004 Cr-Commit-Position: refs/heads/master@{#11608} --- webrtc/video/full_stack.cc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/webrtc/video/full_stack.cc b/webrtc/video/full_stack.cc index e870c1ff14..8a97ba8a9a 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},