Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. | 72 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
| 73 VideoQualityTest::Params foreman_cif; | 73 VideoQualityTest::Params foreman_cif; |
| 74 foreman_cif.call.send_side_bwe = true; | 74 foreman_cif.call.send_side_bwe = true; |
| 75 foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, "VP8", | 75 foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, "VP8", |
| 76 1, 0, 0, false, false, "", "foreman_cif"}; | 76 1, 0, 0, false, false, "", "foreman_cif"}; |
| 77 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0", 0.0, 0.0, | 77 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0", 0.0, 0.0, |
| 78 kFullStackTestDurationSecs}; | 78 kFullStackTestDurationSecs}; |
| 79 RunTest(foreman_cif); | 79 RunTest(foreman_cif); |
| 80 } | 80 } |
| 81 | 81 |
| 82 TEST_F(FullStackTest, ForemanCif30kbpsWithoutPacketLoss) { | |
| 83 VideoQualityTest::Params foreman_cif; | |
| 84 foreman_cif.call.send_side_bwe = true; | |
| 85 foreman_cif.video = {true, 352, 288, 10, 30000, 30000, 30000, false, | |
| 86 "VP8", 1, 0, 0, false, false, "", "foreman_cif"}; | |
|
mflodman
2016/12/16 11:04:14
Can you remove the extra empty spaces.
åsapersson
2016/12/16 11:21:58
Done (from git cl format)
| |
| 87 foreman_cif.analyzer = {"foreman_cif_30kbps_net_delay_0_0_plr_0", 0.0, 0.0, | |
| 88 kFullStackTestDurationSecs}; | |
| 89 RunTest(foreman_cif); | |
| 90 } | |
| 91 | |
| 82 TEST_F(FullStackTest, ForemanCifPlr5) { | 92 TEST_F(FullStackTest, ForemanCifPlr5) { |
| 83 VideoQualityTest::Params foreman_cif; | 93 VideoQualityTest::Params foreman_cif; |
| 84 foreman_cif.call.send_side_bwe = true; | 94 foreman_cif.call.send_side_bwe = true; |
| 85 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", | 95 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
| 86 1, 0, 0, false, false, "", "foreman_cif"}; | 96 1, 0, 0, false, false, "", "foreman_cif"}; |
| 87 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5", 0.0, 0.0, | 97 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5", 0.0, 0.0, |
| 88 kFullStackTestDurationSecs}; | 98 kFullStackTestDurationSecs}; |
| 89 foreman_cif.pipe.loss_percent = 5; | 99 foreman_cif.pipe.loss_percent = 5; |
| 90 foreman_cif.pipe.queue_delay_ms = 50; | 100 foreman_cif.pipe.queue_delay_ms = 50; |
| 91 RunTest(foreman_cif); | 101 RunTest(foreman_cif); |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 120 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. | 130 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
| 121 VideoQualityTest::Params foreman_cif; | 131 VideoQualityTest::Params foreman_cif; |
| 122 foreman_cif.call.send_side_bwe = true; | 132 foreman_cif.call.send_side_bwe = true; |
| 123 foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, | 133 foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, |
| 124 "H264", 1, 0, 0, false, false, "", "foreman_cif"}; | 134 "H264", 1, 0, 0, false, false, "", "foreman_cif"}; |
| 125 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_H264", 0.0, 0.0, | 135 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_H264", 0.0, 0.0, |
| 126 kFullStackTestDurationSecs}; | 136 kFullStackTestDurationSecs}; |
| 127 RunTest(foreman_cif); | 137 RunTest(foreman_cif); |
| 128 } | 138 } |
| 129 | 139 |
| 140 TEST_F(FullStackTest, ForemanCif30kbpsWithoutPacketlossH264) { | |
| 141 VideoQualityTest::Params foreman_cif; | |
| 142 foreman_cif.call.send_side_bwe = true; | |
| 143 foreman_cif.video = {true, 352, 288, 10, 30000, 30000, 30000, | |
|
mflodman
2016/12/16 11:04:14
And here too.
åsapersson
2016/12/16 11:21:58
Done.
| |
| 144 false, "H264", 1, 0, 0, false, false, | |
| 145 "", "foreman_cif"}; | |
| 146 foreman_cif.analyzer = {"foreman_cif_30kbps_net_delay_0_0_plr_0_H264", 0.0, | |
| 147 0.0, kFullStackTestDurationSecs}; | |
| 148 RunTest(foreman_cif); | |
| 149 } | |
| 150 | |
| 130 TEST_F(FullStackTest, ForemanCifPlr5H264) { | 151 TEST_F(FullStackTest, ForemanCifPlr5H264) { |
| 131 VideoQualityTest::Params foreman_cif; | 152 VideoQualityTest::Params foreman_cif; |
| 132 foreman_cif.call.send_side_bwe = true; | 153 foreman_cif.call.send_side_bwe = true; |
| 133 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, | 154 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, |
| 134 "H264", 1, 0, 0, false, false, "", "foreman_cif"}; | 155 "H264", 1, 0, 0, false, false, "", "foreman_cif"}; |
| 135 std::string fec_description; | 156 std::string fec_description; |
| 136 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264", 0.0, 0.0, | 157 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264", 0.0, 0.0, |
| 137 kFullStackTestDurationSecs}; | 158 kFullStackTestDurationSecs}; |
| 138 foreman_cif.pipe.loss_percent = 5; | 159 foreman_cif.pipe.loss_percent = 5; |
| 139 foreman_cif.pipe.queue_delay_ms = 50; | 160 foreman_cif.pipe.queue_delay_ms = 50; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 319 screenshare.screenshare = {true, 10}; | 340 screenshare.screenshare = {true, 10}; |
| 320 screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, | 341 screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, |
| 321 kFullStackTestDurationSecs}; | 342 kFullStackTestDurationSecs}; |
| 322 screenshare.logs = false; | 343 screenshare.logs = false; |
| 323 screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; | 344 screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; |
| 324 RunTest(screenshare); | 345 RunTest(screenshare); |
| 325 } | 346 } |
| 326 #endif // !defined(RTC_DISABLE_VP9) | 347 #endif // !defined(RTC_DISABLE_VP9) |
| 327 | 348 |
| 328 } // namespace webrtc | 349 } // namespace webrtc |
| OLD | NEW |