pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | #include <stdio.h> |
| 11 | |
kwiberg | 77eab70 | 2016-09-28 17:42:01 -0700 | [diff] [blame] | 12 | #include "webrtc/test/gtest.h" |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 13 | #include "webrtc/video/video_quality_test.h" |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 14 | |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 15 | namespace webrtc { |
| 16 | |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 17 | static const int kFullStackTestDurationSecs = 45; |
pbos@webrtc.org | b613b5a | 2013-12-03 10:13:04 +0000 | [diff] [blame] | 18 | |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 19 | class FullStackTest : public VideoQualityTest { |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 20 | public: |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 21 | void RunTest(const VideoQualityTest::Params ¶ms) { |
| 22 | RunWithAnalyzer(params); |
pbos@webrtc.org | 9401524 | 2013-10-16 11:05:37 +0000 | [diff] [blame] | 23 | } |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 24 | |
| 25 | void ForemanCifWithoutPacketLoss(const std::string& video_codec) { |
| 26 | // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 27 | VideoQualityTest::Params foreman_cif; |
| 28 | foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 29 | video_codec, 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 30 | foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_" + video_codec, |
| 31 | 0.0, 0.0, kFullStackTestDurationSecs}; |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 32 | RunTest(foreman_cif); |
| 33 | } |
| 34 | |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 35 | void ForemanCifPlr5(const std::string& video_codec, |
| 36 | bool use_ulpfec, |
| 37 | bool use_flexfec) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 38 | VideoQualityTest::Params foreman_cif; |
| 39 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 40 | video_codec, 1, 0, 0, use_ulpfec, use_flexfec, "", |
| 41 | "foreman_cif"}; |
| 42 | std::string fec_description; |
| 43 | if (use_ulpfec) |
| 44 | fec_description += "_ulpfec"; |
| 45 | if (use_flexfec) |
| 46 | fec_description += "_flexfec"; |
| 47 | foreman_cif.analyzer = { |
| 48 | "foreman_cif_delay_50_0_plr_5_" + video_codec + fec_description, 0.0, |
| 49 | 0.0, kFullStackTestDurationSecs}; |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 50 | foreman_cif.pipe.loss_percent = 5; |
| 51 | foreman_cif.pipe.queue_delay_ms = 50; |
| 52 | RunTest(foreman_cif); |
| 53 | } |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 54 | }; |
| 55 | |
sprang | ce4aef1 | 2015-11-02 07:23:20 -0800 | [diff] [blame] | 56 | // VideoQualityTest::Params params = { |
| 57 | // { ... }, // Common. |
| 58 | // { ... }, // Video-specific settings. |
| 59 | // { ... }, // Screenshare-specific settings. |
| 60 | // { ... }, // Analyzer settings. |
| 61 | // pipe, // FakeNetworkPipe::Config |
| 62 | // { ... }, // Spatial scalability. |
| 63 | // logs // bool |
| 64 | // }; |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 65 | |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 66 | #if !defined(RTC_DISABLE_VP9) |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 67 | TEST_F(FullStackTest, ForemanCifWithoutPacketLossVp9) { |
| 68 | ForemanCifWithoutPacketLoss("VP9"); |
| 69 | } |
| 70 | |
| 71 | TEST_F(FullStackTest, ForemanCifPlr5Vp9) { |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 72 | const bool kUlpfec = false; |
| 73 | const bool kFlexfec = false; |
| 74 | ForemanCifPlr5("VP9", kUlpfec, kFlexfec); |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 75 | } |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 76 | #endif // !defined(RTC_DISABLE_VP9) |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 77 | |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 78 | TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 79 | VideoQualityTest::Params paris_qcif; |
| 80 | paris_qcif.call.send_side_bwe = true; |
| 81 | paris_qcif.video = {true, 176, 144, 30, 300000, 300000, 300000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 82 | "VP8", 1, 0, 0, false, false, "", "paris_qcif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 83 | paris_qcif.analyzer = {"net_delay_0_0_plr_0", 36.0, 0.96, |
| 84 | kFullStackTestDurationSecs}; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 85 | RunTest(paris_qcif); |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | TEST_F(FullStackTest, ForemanCifWithoutPacketLoss) { |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 89 | // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 90 | VideoQualityTest::Params foreman_cif; |
| 91 | foreman_cif.call.send_side_bwe = true; |
| 92 | foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 93 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 94 | foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0", 0.0, 0.0, |
| 95 | kFullStackTestDurationSecs}; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 96 | RunTest(foreman_cif); |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 97 | } |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 98 | |
sprang@webrtc.org | 343096a | 2015-02-23 08:34:17 +0000 | [diff] [blame] | 99 | TEST_F(FullStackTest, ForemanCifPlr5) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 100 | VideoQualityTest::Params foreman_cif; |
| 101 | foreman_cif.call.send_side_bwe = true; |
| 102 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 103 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 104 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5", 0.0, 0.0, |
| 105 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 106 | foreman_cif.pipe.loss_percent = 5; |
| 107 | foreman_cif.pipe.queue_delay_ms = 50; |
stefan@webrtc.org | c216b9a | 2014-10-14 10:38:49 +0000 | [diff] [blame] | 108 | RunTest(foreman_cif); |
| 109 | } |
| 110 | |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 111 | #if defined(WEBRTC_USE_H264) |
| 112 | TEST_F(FullStackTest, ForemanCifWithoutPacketlossH264) { |
| 113 | ForemanCifWithoutPacketLoss("H264"); |
| 114 | } |
| 115 | |
| 116 | TEST_F(FullStackTest, ForemanCifPlr5H264) { |
| 117 | const bool kUlpfec = false; |
| 118 | const bool kFlexfec = false; |
| 119 | ForemanCifPlr5("H264", kUlpfec, kFlexfec); |
| 120 | } |
| 121 | |
| 122 | // Verify that this is worth the bot time, before enabling. |
| 123 | TEST_F(FullStackTest, ForemanCifPlr5H264Flexfec) { |
| 124 | const bool kUlpfec = false; |
| 125 | const bool kFlexfec = true; |
| 126 | ForemanCifPlr5("H264", kUlpfec, kFlexfec); |
| 127 | } |
| 128 | |
| 129 | // Ulpfec with H264 is an unsupported combination, so this test is only useful |
| 130 | // for debugging. It is therefore disabled by default. |
| 131 | TEST_F(FullStackTest, DISABLED_ForemanCifPlr5H264Ulpfec) { |
| 132 | const bool kUlpfec = true; |
| 133 | const bool kFlexfec = false; |
| 134 | ForemanCifPlr5("H264", kUlpfec, kFlexfec); |
| 135 | } |
| 136 | #endif // defined(WEBRTC_USE_H264) |
| 137 | |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 138 | TEST_F(FullStackTest, ForemanCif500kbps) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 139 | VideoQualityTest::Params foreman_cif; |
| 140 | foreman_cif.call.send_side_bwe = true; |
| 141 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 142 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 143 | foreman_cif.analyzer = {"foreman_cif_500kbps", 0.0, 0.0, |
| 144 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 145 | foreman_cif.pipe.queue_length_packets = 0; |
| 146 | foreman_cif.pipe.queue_delay_ms = 0; |
| 147 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 148 | RunTest(foreman_cif); |
| 149 | } |
| 150 | |
| 151 | TEST_F(FullStackTest, ForemanCif500kbpsLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 152 | VideoQualityTest::Params foreman_cif; |
| 153 | foreman_cif.call.send_side_bwe = true; |
| 154 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 155 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 156 | foreman_cif.analyzer = {"foreman_cif_500kbps_32pkts_queue", 0.0, 0.0, |
| 157 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 158 | foreman_cif.pipe.queue_length_packets = 32; |
| 159 | foreman_cif.pipe.queue_delay_ms = 0; |
| 160 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 161 | RunTest(foreman_cif); |
| 162 | } |
| 163 | |
| 164 | TEST_F(FullStackTest, ForemanCif500kbps100ms) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 165 | VideoQualityTest::Params foreman_cif; |
| 166 | foreman_cif.call.send_side_bwe = true; |
| 167 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 168 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 169 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms", 0.0, 0.0, |
| 170 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 171 | foreman_cif.pipe.queue_length_packets = 0; |
| 172 | foreman_cif.pipe.queue_delay_ms = 100; |
| 173 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 174 | RunTest(foreman_cif); |
| 175 | } |
| 176 | |
| 177 | TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 178 | VideoQualityTest::Params foreman_cif; |
| 179 | foreman_cif.call.send_side_bwe = true; |
| 180 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 181 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 182 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 183 | kFullStackTestDurationSecs}; |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 184 | foreman_cif.pipe.queue_length_packets = 32; |
| 185 | foreman_cif.pipe.queue_delay_ms = 100; |
| 186 | foreman_cif.pipe.link_capacity_kbps = 500; |
| 187 | RunTest(foreman_cif); |
| 188 | } |
| 189 | |
| 190 | TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueueRecvBwe) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 191 | VideoQualityTest::Params foreman_cif; |
| 192 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 193 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 194 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 195 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 196 | foreman_cif.pipe.queue_length_packets = 32; |
| 197 | foreman_cif.pipe.queue_delay_ms = 100; |
| 198 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 199 | RunTest(foreman_cif); |
| 200 | } |
| 201 | |
| 202 | TEST_F(FullStackTest, ForemanCif1000kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 203 | VideoQualityTest::Params foreman_cif; |
| 204 | foreman_cif.call.send_side_bwe = true; |
| 205 | foreman_cif.video = {true, 352, 288, 30, 30000, 2000000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 206 | "VP8", 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 207 | foreman_cif.analyzer = {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 208 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 209 | foreman_cif.pipe.queue_length_packets = 32; |
| 210 | foreman_cif.pipe.queue_delay_ms = 100; |
| 211 | foreman_cif.pipe.link_capacity_kbps = 1000; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 212 | RunTest(foreman_cif); |
| 213 | } |
sprang@webrtc.org | 131bea8 | 2015-02-18 12:46:06 +0000 | [diff] [blame] | 214 | |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 215 | TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 216 | VideoQualityTest::Params conf_motion_hd; |
| 217 | conf_motion_hd.call.send_side_bwe = true; |
| 218 | conf_motion_hd.video = {true, 1280, 720, 50, 30000, 3000000, 3000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 219 | "VP8", 1, 0, 0, false, false, "", |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 220 | "ConferenceMotion_1280_720_50"}; |
| 221 | conf_motion_hd.analyzer = {"conference_motion_hd_2000kbps_100ms_32pkts_queue", |
| 222 | 0.0, 0.0, kFullStackTestDurationSecs}; |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 223 | conf_motion_hd.pipe.queue_length_packets = 32; |
| 224 | conf_motion_hd.pipe.queue_delay_ms = 100; |
| 225 | conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 226 | RunTest(conf_motion_hd); |
| 227 | } |
| 228 | |
ivica | 7bd242e | 2015-10-06 02:04:06 -0700 | [diff] [blame] | 229 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 230 | VideoQualityTest::Params screenshare; |
| 231 | screenshare.call.send_side_bwe = true; |
| 232 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 233 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 234 | screenshare.screenshare = {true, 10}; |
| 235 | screenshare.analyzer = {"screenshare_slides", 0.0, 0.0, |
| 236 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 237 | RunTest(screenshare); |
Erik Språng | 6ee69aa | 2015-09-03 15:58:05 +0200 | [diff] [blame] | 238 | } |
| 239 | |
ivica | 7bd242e | 2015-10-06 02:04:06 -0700 | [diff] [blame] | 240 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 241 | VideoQualityTest::Params config; |
| 242 | config.call.send_side_bwe = true; |
| 243 | config.video = {true, 1850, 1110 / 2, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 244 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 245 | config.screenshare = {true, 10, 2}; |
| 246 | config.analyzer = {"screenshare_slides_scrolling", 0.0, 0.0, |
| 247 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 248 | RunTest(config); |
ivica | 028cf48 | 2015-07-30 02:15:56 -0700 | [diff] [blame] | 249 | } |
| 250 | |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 251 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNet) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 252 | VideoQualityTest::Params screenshare; |
| 253 | screenshare.call.send_side_bwe = true; |
| 254 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 255 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 256 | screenshare.screenshare = {true, 10}; |
| 257 | screenshare.analyzer = {"screenshare_slides_lossy_net", 0.0, 0.0, |
| 258 | kFullStackTestDurationSecs}; |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 259 | screenshare.pipe.loss_percent = 5; |
| 260 | screenshare.pipe.queue_delay_ms = 200; |
| 261 | screenshare.pipe.link_capacity_kbps = 500; |
| 262 | RunTest(screenshare); |
| 263 | } |
| 264 | |
| 265 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_VeryLossyNet) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 266 | VideoQualityTest::Params screenshare; |
| 267 | screenshare.call.send_side_bwe = true; |
| 268 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 269 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 270 | screenshare.screenshare = {true, 10}; |
| 271 | screenshare.analyzer = {"screenshare_slides_very_lossy", 0.0, 0.0, |
| 272 | kFullStackTestDurationSecs}; |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 273 | screenshare.pipe.loss_percent = 10; |
| 274 | screenshare.pipe.queue_delay_ms = 200; |
| 275 | screenshare.pipe.link_capacity_kbps = 500; |
| 276 | RunTest(screenshare); |
| 277 | } |
| 278 | |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 279 | #if !defined(RTC_DISABLE_VP9) |
philipel | cfc319b | 2015-11-10 07:17:23 -0800 | [diff] [blame] | 280 | TEST_F(FullStackTest, ScreenshareSlidesVP9_2SL) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 281 | VideoQualityTest::Params screenshare; |
| 282 | screenshare.call.send_side_bwe = true; |
| 283 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 284 | "VP9", 1, 0, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 285 | screenshare.screenshare = {true, 10}; |
| 286 | screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, |
| 287 | kFullStackTestDurationSecs}; |
| 288 | screenshare.logs = false; |
| 289 | screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 290 | RunTest(screenshare); |
sprang@webrtc.org | 131bea8 | 2015-02-18 12:46:06 +0000 | [diff] [blame] | 291 | } |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 292 | #endif // !defined(RTC_DISABLE_VP9) |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 293 | } // namespace webrtc |