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 | } |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 24 | }; |
| 25 | |
sprang | ce4aef1 | 2015-11-02 07:23:20 -0800 | [diff] [blame] | 26 | // VideoQualityTest::Params params = { |
| 27 | // { ... }, // Common. |
| 28 | // { ... }, // Video-specific settings. |
| 29 | // { ... }, // Screenshare-specific settings. |
| 30 | // { ... }, // Analyzer settings. |
| 31 | // pipe, // FakeNetworkPipe::Config |
| 32 | // { ... }, // Spatial scalability. |
| 33 | // logs // bool |
| 34 | // }; |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 35 | |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 36 | #if !defined(RTC_DISABLE_VP9) |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 37 | TEST_F(FullStackTest, ForemanCifWithoutPacketLossVp9) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 38 | // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
| 39 | VideoQualityTest::Params foreman_cif; |
| 40 | foreman_cif.call.send_side_bwe = true; |
| 41 | foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, |
| 42 | "VP9", 1, 0, 0, false, false, "", "foreman_cif"}; |
| 43 | foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_VP9", 0.0, 0.0, |
| 44 | kFullStackTestDurationSecs}; |
| 45 | RunTest(foreman_cif); |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | TEST_F(FullStackTest, ForemanCifPlr5Vp9) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 49 | VideoQualityTest::Params foreman_cif; |
| 50 | foreman_cif.call.send_side_bwe = true; |
| 51 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, |
| 52 | "VP9", 1, 0, 0, false, false, "", "foreman_cif"}; |
| 53 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_VP9", 0.0, 0.0, |
| 54 | kFullStackTestDurationSecs}; |
| 55 | foreman_cif.pipe.loss_percent = 5; |
| 56 | foreman_cif.pipe.queue_delay_ms = 50; |
| 57 | RunTest(foreman_cif); |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 58 | } |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 59 | #endif // !defined(RTC_DISABLE_VP9) |
asapersson | 88b0a22 | 2016-02-12 13:16:43 -0800 | [diff] [blame] | 60 | |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 61 | TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 62 | VideoQualityTest::Params paris_qcif; |
| 63 | paris_qcif.call.send_side_bwe = true; |
| 64 | paris_qcif.video = {true, 176, 144, 30, 300000, 300000, 300000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 65 | "VP8", 1, 0, 0, false, false, "", "paris_qcif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 66 | paris_qcif.analyzer = {"net_delay_0_0_plr_0", 36.0, 0.96, |
| 67 | kFullStackTestDurationSecs}; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 68 | RunTest(paris_qcif); |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | TEST_F(FullStackTest, ForemanCifWithoutPacketLoss) { |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 72 | // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 73 | VideoQualityTest::Params foreman_cif; |
| 74 | foreman_cif.call.send_side_bwe = true; |
| 75 | foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 76 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 77 | foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0", 0.0, 0.0, |
| 78 | kFullStackTestDurationSecs}; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 79 | RunTest(foreman_cif); |
pbos@webrtc.org | 994d0b7 | 2014-06-27 08:47:52 +0000 | [diff] [blame] | 80 | } |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 81 | |
asapersson | fb6ad3b | 2016-12-16 06:54:01 -0800 | [diff] [blame] | 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"}; |
| 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 | |
sprang@webrtc.org | 343096a | 2015-02-23 08:34:17 +0000 | [diff] [blame] | 92 | TEST_F(FullStackTest, ForemanCifPlr5) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 93 | VideoQualityTest::Params foreman_cif; |
| 94 | foreman_cif.call.send_side_bwe = true; |
| 95 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 96 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 97 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5", 0.0, 0.0, |
| 98 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 99 | foreman_cif.pipe.loss_percent = 5; |
| 100 | foreman_cif.pipe.queue_delay_ms = 50; |
stefan@webrtc.org | c216b9a | 2014-10-14 10:38:49 +0000 | [diff] [blame] | 101 | RunTest(foreman_cif); |
| 102 | } |
| 103 | |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 104 | TEST_F(FullStackTest, ForemanCifPlr5Ulpfec) { |
| 105 | VideoQualityTest::Params foreman_cif; |
| 106 | foreman_cif.call.send_side_bwe = true; |
| 107 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
| 108 | 1, 0, 0, true, false, "", "foreman_cif"}; |
| 109 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_ulpfec", 0.0, 0.0, |
| 110 | kFullStackTestDurationSecs}; |
| 111 | foreman_cif.pipe.loss_percent = 5; |
| 112 | foreman_cif.pipe.queue_delay_ms = 50; |
| 113 | RunTest(foreman_cif); |
| 114 | } |
| 115 | |
| 116 | TEST_F(FullStackTest, ForemanCifPlr5Flexfec) { |
| 117 | VideoQualityTest::Params foreman_cif; |
| 118 | foreman_cif.call.send_side_bwe = true; |
| 119 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
| 120 | 1, 0, 0, false, true, "", "foreman_cif"}; |
| 121 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_flexfec", 0.0, 0.0, |
| 122 | kFullStackTestDurationSecs}; |
| 123 | foreman_cif.pipe.loss_percent = 5; |
| 124 | foreman_cif.pipe.queue_delay_ms = 50; |
| 125 | RunTest(foreman_cif); |
| 126 | } |
| 127 | |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 128 | #if defined(WEBRTC_USE_H264) |
| 129 | TEST_F(FullStackTest, ForemanCifWithoutPacketlossH264) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 130 | // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
| 131 | VideoQualityTest::Params foreman_cif; |
| 132 | foreman_cif.call.send_side_bwe = true; |
| 133 | foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, |
| 134 | "H264", 1, 0, 0, false, false, "", "foreman_cif"}; |
| 135 | foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_H264", 0.0, 0.0, |
| 136 | kFullStackTestDurationSecs}; |
| 137 | RunTest(foreman_cif); |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 138 | } |
| 139 | |
asapersson | fb6ad3b | 2016-12-16 06:54:01 -0800 | [diff] [blame] | 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, false, "H264", |
| 144 | 1, 0, 0, false, false, "", "foreman_cif"}; |
| 145 | foreman_cif.analyzer = {"foreman_cif_30kbps_net_delay_0_0_plr_0_H264", 0.0, |
| 146 | 0.0, kFullStackTestDurationSecs}; |
| 147 | RunTest(foreman_cif); |
| 148 | } |
| 149 | |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 150 | TEST_F(FullStackTest, ForemanCifPlr5H264) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 151 | VideoQualityTest::Params foreman_cif; |
| 152 | foreman_cif.call.send_side_bwe = true; |
| 153 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, |
| 154 | "H264", 1, 0, 0, false, false, "", "foreman_cif"}; |
| 155 | std::string fec_description; |
| 156 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264", 0.0, 0.0, |
| 157 | kFullStackTestDurationSecs}; |
| 158 | foreman_cif.pipe.loss_percent = 5; |
| 159 | foreman_cif.pipe.queue_delay_ms = 50; |
| 160 | RunTest(foreman_cif); |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 161 | } |
| 162 | |
| 163 | // Verify that this is worth the bot time, before enabling. |
| 164 | TEST_F(FullStackTest, ForemanCifPlr5H264Flexfec) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [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, |
| 168 | "H264", 1, 0, 0, false, true, "", "foreman_cif"}; |
| 169 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264_flexfec", 0.0, 0.0, |
| 170 | kFullStackTestDurationSecs}; |
| 171 | foreman_cif.pipe.loss_percent = 5; |
| 172 | foreman_cif.pipe.queue_delay_ms = 50; |
| 173 | RunTest(foreman_cif); |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 174 | } |
| 175 | |
| 176 | // Ulpfec with H264 is an unsupported combination, so this test is only useful |
| 177 | // for debugging. It is therefore disabled by default. |
| 178 | TEST_F(FullStackTest, DISABLED_ForemanCifPlr5H264Ulpfec) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 179 | VideoQualityTest::Params foreman_cif; |
| 180 | foreman_cif.call.send_side_bwe = true; |
| 181 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, |
| 182 | "H264", 1, 0, 0, true, false, "", "foreman_cif"}; |
| 183 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264_ulpfec", 0.0, 0.0, |
| 184 | kFullStackTestDurationSecs}; |
| 185 | foreman_cif.pipe.loss_percent = 5; |
| 186 | foreman_cif.pipe.queue_delay_ms = 50; |
| 187 | RunTest(foreman_cif); |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 188 | } |
| 189 | #endif // defined(WEBRTC_USE_H264) |
| 190 | |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 191 | TEST_F(FullStackTest, ForemanCif500kbps) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 192 | VideoQualityTest::Params foreman_cif; |
| 193 | foreman_cif.call.send_side_bwe = true; |
| 194 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 195 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 196 | foreman_cif.analyzer = {"foreman_cif_500kbps", 0.0, 0.0, |
| 197 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 198 | foreman_cif.pipe.queue_length_packets = 0; |
| 199 | foreman_cif.pipe.queue_delay_ms = 0; |
| 200 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 201 | RunTest(foreman_cif); |
| 202 | } |
| 203 | |
| 204 | TEST_F(FullStackTest, ForemanCif500kbpsLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 205 | VideoQualityTest::Params foreman_cif; |
| 206 | foreman_cif.call.send_side_bwe = true; |
| 207 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 208 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 209 | foreman_cif.analyzer = {"foreman_cif_500kbps_32pkts_queue", 0.0, 0.0, |
| 210 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 211 | foreman_cif.pipe.queue_length_packets = 32; |
| 212 | foreman_cif.pipe.queue_delay_ms = 0; |
| 213 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 214 | RunTest(foreman_cif); |
| 215 | } |
| 216 | |
| 217 | TEST_F(FullStackTest, ForemanCif500kbps100ms) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 218 | VideoQualityTest::Params foreman_cif; |
| 219 | foreman_cif.call.send_side_bwe = true; |
| 220 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 221 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 222 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms", 0.0, 0.0, |
| 223 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 224 | foreman_cif.pipe.queue_length_packets = 0; |
| 225 | foreman_cif.pipe.queue_delay_ms = 100; |
| 226 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 227 | RunTest(foreman_cif); |
| 228 | } |
| 229 | |
| 230 | TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 231 | VideoQualityTest::Params foreman_cif; |
| 232 | foreman_cif.call.send_side_bwe = true; |
| 233 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 234 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 235 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 236 | kFullStackTestDurationSecs}; |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 237 | foreman_cif.pipe.queue_length_packets = 32; |
| 238 | foreman_cif.pipe.queue_delay_ms = 100; |
| 239 | foreman_cif.pipe.link_capacity_kbps = 500; |
| 240 | RunTest(foreman_cif); |
| 241 | } |
| 242 | |
| 243 | TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueueRecvBwe) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 244 | VideoQualityTest::Params foreman_cif; |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 245 | foreman_cif.call.send_side_bwe = false; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 246 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 247 | 1, 0, 0, false, false, "", "foreman_cif"}; |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 248 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue_recv_bwe", |
| 249 | 0.0, 0.0, kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 250 | foreman_cif.pipe.queue_length_packets = 32; |
| 251 | foreman_cif.pipe.queue_delay_ms = 100; |
| 252 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 253 | RunTest(foreman_cif); |
| 254 | } |
| 255 | |
| 256 | TEST_F(FullStackTest, ForemanCif1000kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 257 | VideoQualityTest::Params foreman_cif; |
| 258 | foreman_cif.call.send_side_bwe = true; |
| 259 | foreman_cif.video = {true, 352, 288, 30, 30000, 2000000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 260 | "VP8", 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 261 | foreman_cif.analyzer = {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 262 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 263 | foreman_cif.pipe.queue_length_packets = 32; |
| 264 | foreman_cif.pipe.queue_delay_ms = 100; |
| 265 | foreman_cif.pipe.link_capacity_kbps = 1000; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 266 | RunTest(foreman_cif); |
| 267 | } |
sprang@webrtc.org | 131bea8 | 2015-02-18 12:46:06 +0000 | [diff] [blame] | 268 | |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 269 | TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 270 | VideoQualityTest::Params conf_motion_hd; |
| 271 | conf_motion_hd.call.send_side_bwe = true; |
| 272 | conf_motion_hd.video = {true, 1280, 720, 50, 30000, 3000000, 3000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 273 | "VP8", 1, 0, 0, false, false, "", |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 274 | "ConferenceMotion_1280_720_50"}; |
| 275 | conf_motion_hd.analyzer = {"conference_motion_hd_2000kbps_100ms_32pkts_queue", |
| 276 | 0.0, 0.0, kFullStackTestDurationSecs}; |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 277 | conf_motion_hd.pipe.queue_length_packets = 32; |
| 278 | conf_motion_hd.pipe.queue_delay_ms = 100; |
| 279 | conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 280 | RunTest(conf_motion_hd); |
| 281 | } |
| 282 | |
jianj | 390e64d | 2017-02-03 09:51:23 -0800 | [diff] [blame] | 283 | #if !defined(RTC_DISABLE_VP9) |
| 284 | TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueueVP9) { |
| 285 | VideoQualityTest::Params conf_motion_hd; |
| 286 | conf_motion_hd.call.send_side_bwe = true; |
| 287 | conf_motion_hd.video = {true, 1280, 720, 50, 30000, 3000000, 3000000, false, |
| 288 | "VP9", 1, 0, 0, false, false, "", |
| 289 | "ConferenceMotion_1280_720_50"}; |
| 290 | conf_motion_hd.analyzer = { |
| 291 | "conference_motion_hd_2000kbps_100ms_32pkts_queue_vp9", 0.0, 0.0, |
| 292 | kFullStackTestDurationSecs}; |
| 293 | conf_motion_hd.pipe.queue_length_packets = 32; |
| 294 | conf_motion_hd.pipe.queue_delay_ms = 100; |
| 295 | conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 296 | RunTest(conf_motion_hd); |
| 297 | } |
| 298 | #endif |
| 299 | |
ivica | 7bd242e | 2015-10-06 02:04:06 -0700 | [diff] [blame] | 300 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 301 | VideoQualityTest::Params screenshare; |
| 302 | screenshare.call.send_side_bwe = true; |
| 303 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 304 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 305 | screenshare.screenshare = {true, 10}; |
| 306 | screenshare.analyzer = {"screenshare_slides", 0.0, 0.0, |
| 307 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 308 | RunTest(screenshare); |
Erik SprĂ¥ng | 6ee69aa | 2015-09-03 15:58:05 +0200 | [diff] [blame] | 309 | } |
| 310 | |
ivica | 7bd242e | 2015-10-06 02:04:06 -0700 | [diff] [blame] | 311 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 312 | VideoQualityTest::Params config; |
| 313 | config.call.send_side_bwe = true; |
| 314 | config.video = {true, 1850, 1110 / 2, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 315 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 316 | config.screenshare = {true, 10, 2}; |
| 317 | config.analyzer = {"screenshare_slides_scrolling", 0.0, 0.0, |
| 318 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 319 | RunTest(config); |
ivica | 028cf48 | 2015-07-30 02:15:56 -0700 | [diff] [blame] | 320 | } |
| 321 | |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 322 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNet) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 323 | VideoQualityTest::Params screenshare; |
| 324 | screenshare.call.send_side_bwe = true; |
| 325 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 326 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 327 | screenshare.screenshare = {true, 10}; |
| 328 | screenshare.analyzer = {"screenshare_slides_lossy_net", 0.0, 0.0, |
| 329 | kFullStackTestDurationSecs}; |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 330 | screenshare.pipe.loss_percent = 5; |
| 331 | screenshare.pipe.queue_delay_ms = 200; |
| 332 | screenshare.pipe.link_capacity_kbps = 500; |
| 333 | RunTest(screenshare); |
| 334 | } |
| 335 | |
| 336 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_VeryLossyNet) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 337 | VideoQualityTest::Params screenshare; |
| 338 | screenshare.call.send_side_bwe = true; |
| 339 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 340 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 341 | screenshare.screenshare = {true, 10}; |
| 342 | screenshare.analyzer = {"screenshare_slides_very_lossy", 0.0, 0.0, |
| 343 | kFullStackTestDurationSecs}; |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 344 | screenshare.pipe.loss_percent = 10; |
| 345 | screenshare.pipe.queue_delay_ms = 200; |
| 346 | screenshare.pipe.link_capacity_kbps = 500; |
| 347 | RunTest(screenshare); |
| 348 | } |
| 349 | |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 350 | #if !defined(RTC_DISABLE_VP9) |
philipel | cfc319b | 2015-11-10 07:17:23 -0800 | [diff] [blame] | 351 | TEST_F(FullStackTest, ScreenshareSlidesVP9_2SL) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 352 | VideoQualityTest::Params screenshare; |
| 353 | screenshare.call.send_side_bwe = true; |
| 354 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 355 | "VP9", 1, 0, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 356 | screenshare.screenshare = {true, 10}; |
| 357 | screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, |
| 358 | kFullStackTestDurationSecs}; |
| 359 | screenshare.logs = false; |
| 360 | screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 361 | RunTest(screenshare); |
sprang@webrtc.org | 131bea8 | 2015-02-18 12:46:06 +0000 | [diff] [blame] | 362 | } |
ilnik | 2a8c2f5 | 2017-02-15 02:23:28 -0800 | [diff] [blame] | 363 | |
| 364 | TEST_F(FullStackTest, VP9SVC_3SL_High) { |
| 365 | VideoQualityTest::Params simulcast; |
| 366 | simulcast.call.send_side_bwe = true; |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 367 | simulcast.video = {true, 1280, 720, 30, |
ilnik | 2a8c2f5 | 2017-02-15 02:23:28 -0800 | [diff] [blame] | 368 | 800000, 2500000, 2500000, false, |
| 369 | "VP9", 1, 0, 400000, |
| 370 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 371 | simulcast.analyzer = {"vp9svc_3sl_high", 0.0, 0.0, |
| 372 | kFullStackTestDurationSecs}; |
| 373 | simulcast.logs = false; |
| 374 | simulcast.ss = {std::vector<VideoStream>(), 0, 3, 2}; |
| 375 | RunTest(simulcast); |
| 376 | } |
| 377 | |
| 378 | TEST_F(FullStackTest, VP9SVC_3SL_Medium) { |
| 379 | VideoQualityTest::Params simulcast; |
| 380 | simulcast.call.send_side_bwe = true; |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 381 | simulcast.video = {true, 1280, 720, 30, |
ilnik | 2a8c2f5 | 2017-02-15 02:23:28 -0800 | [diff] [blame] | 382 | 800000, 2500000, 2500000, false, |
| 383 | "VP9", 1, 0, 400000, |
| 384 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 385 | simulcast.analyzer = {"vp9svc_3sl_medium", 0.0, 0.0, |
| 386 | kFullStackTestDurationSecs}; |
| 387 | simulcast.logs = false; |
| 388 | simulcast.ss = {std::vector<VideoStream>(), 0, 3, 1}; |
| 389 | RunTest(simulcast); |
| 390 | } |
| 391 | |
| 392 | TEST_F(FullStackTest, VP9SVC_3SL_Low) { |
| 393 | VideoQualityTest::Params simulcast; |
| 394 | simulcast.call.send_side_bwe = true; |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 395 | simulcast.video = {true, 1280, 720, 30, |
ilnik | 2a8c2f5 | 2017-02-15 02:23:28 -0800 | [diff] [blame] | 396 | 800000, 2500000, 2500000, false, |
| 397 | "VP9", 1, 0, 400000, |
| 398 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 399 | simulcast.analyzer = {"vp9svc_3sl_low", 0.0, 0.0, kFullStackTestDurationSecs}; |
| 400 | simulcast.logs = false; |
| 401 | simulcast.ss = {std::vector<VideoStream>(), 0, 3, 0}; |
| 402 | RunTest(simulcast); |
| 403 | } |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 404 | #endif // !defined(RTC_DISABLE_VP9) |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 405 | |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 406 | TEST_F(FullStackTest, SimulcastVP8_3SL_High) { |
| 407 | VideoQualityTest::Params simulcast; |
| 408 | simulcast.call.send_side_bwe = true; |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 409 | simulcast.video = {true, 1280, 720, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 410 | 800000, 2500000, 2500000, false, |
| 411 | "VP8", 1, 0, 400000, |
| 412 | false, false, "", "ConferenceMotion_1280_720_50"}; |
ilnik | 2a8c2f5 | 2017-02-15 02:23:28 -0800 | [diff] [blame] | 413 | simulcast.analyzer = {"simulcast_vp8_3sl_high", 0.0, 0.0, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 414 | kFullStackTestDurationSecs}; |
| 415 | simulcast.pipe.loss_percent = 0; |
| 416 | simulcast.pipe.queue_delay_ms = 100; |
| 417 | VideoQualityTest::Params video_params_high; |
| 418 | video_params_high.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 419 | true, 1280, 720, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 420 | 800000, 2500000, 2500000, false, |
| 421 | "VP8", 1, 0, 400000, |
| 422 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 423 | VideoQualityTest::Params video_params_medium; |
| 424 | video_params_medium.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 425 | true, 640, 360, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 426 | 150000, 500000, 700000, false, |
| 427 | "VP8", 1, 0, 400000, |
| 428 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 429 | VideoQualityTest::Params video_params_low; |
| 430 | video_params_low.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 431 | true, 320, 180, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 432 | 30000, 150000, 200000, false, |
| 433 | "VP8", 1, 0, 400000, |
| 434 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 435 | |
| 436 | std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
| 437 | DefaultVideoStream(video_params_medium), |
| 438 | DefaultVideoStream(video_params_high)}; |
| 439 | simulcast.ss = {streams, 2, 1, 0}; |
| 440 | RunTest(simulcast); |
| 441 | } |
| 442 | |
| 443 | TEST_F(FullStackTest, SimulcastVP8_3SL_Medium) { |
| 444 | VideoQualityTest::Params simulcast; |
| 445 | simulcast.call.send_side_bwe = true; |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 446 | simulcast.video = {true, 1280, 720, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 447 | 800000, 2500000, 2500000, false, |
| 448 | "VP8", 1, 0, 400000, |
| 449 | false, false, "", "ConferenceMotion_1280_720_50"}; |
ilnik | 2a8c2f5 | 2017-02-15 02:23:28 -0800 | [diff] [blame] | 450 | simulcast.analyzer = {"simulcast_vp8_3sl_medium", 0.0, 0.0, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 451 | kFullStackTestDurationSecs}; |
| 452 | simulcast.pipe.loss_percent = 0; |
| 453 | simulcast.pipe.queue_delay_ms = 100; |
| 454 | VideoQualityTest::Params video_params_high; |
| 455 | video_params_high.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 456 | true, 1280, 720, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 457 | 800000, 2500000, 2500000, false, |
| 458 | "VP8", 1, 0, 400000, |
| 459 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 460 | VideoQualityTest::Params video_params_medium; |
| 461 | video_params_medium.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 462 | true, 640, 360, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 463 | 150000, 500000, 700000, false, |
| 464 | "VP8", 1, 0, 400000, |
| 465 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 466 | VideoQualityTest::Params video_params_low; |
| 467 | video_params_low.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 468 | true, 320, 180, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 469 | 30000, 150000, 200000, false, |
| 470 | "VP8", 1, 0, 400000, |
| 471 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 472 | |
| 473 | std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
| 474 | DefaultVideoStream(video_params_medium), |
| 475 | DefaultVideoStream(video_params_high)}; |
| 476 | simulcast.ss = {streams, 1, 1, 0}; |
| 477 | RunTest(simulcast); |
| 478 | } |
| 479 | |
| 480 | TEST_F(FullStackTest, SimulcastVP8_3SL_Low) { |
| 481 | VideoQualityTest::Params simulcast; |
| 482 | simulcast.call.send_side_bwe = true; |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 483 | simulcast.video = {true, 1280, 720, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 484 | 800000, 2500000, 2500000, false, |
| 485 | "VP8", 1, 0, 400000, |
| 486 | false, false, "", "ConferenceMotion_1280_720_50"}; |
ilnik | 2a8c2f5 | 2017-02-15 02:23:28 -0800 | [diff] [blame] | 487 | simulcast.analyzer = {"simulcast_vp8_3sl_low", 0.0, 0.0, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 488 | kFullStackTestDurationSecs}; |
| 489 | simulcast.pipe.loss_percent = 0; |
| 490 | simulcast.pipe.queue_delay_ms = 100; |
| 491 | VideoQualityTest::Params video_params_high; |
| 492 | video_params_high.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 493 | true, 1280, 720, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 494 | 800000, 2500000, 2500000, false, |
| 495 | "VP8", 1, 0, 400000, |
| 496 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 497 | VideoQualityTest::Params video_params_medium; |
| 498 | video_params_medium.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 499 | true, 640, 360, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 500 | 150000, 500000, 700000, false, |
| 501 | "VP8", 1, 0, 400000, |
| 502 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 503 | VideoQualityTest::Params video_params_low; |
| 504 | video_params_low.video = { |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 505 | true, 320, 180, 30, |
ilnik | 3dd5ad9 | 2017-02-09 04:58:53 -0800 | [diff] [blame] | 506 | 30000, 150000, 200000, false, |
| 507 | "VP8", 1, 0, 400000, |
| 508 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 509 | |
| 510 | std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
| 511 | DefaultVideoStream(video_params_medium), |
| 512 | DefaultVideoStream(video_params_high)}; |
| 513 | simulcast.ss = {streams, 0, 1, 0}; |
| 514 | RunTest(simulcast); |
| 515 | } |
| 516 | |
ilnik | a014cc5 | 2017-03-07 04:21:04 -0800 | [diff] [blame^] | 517 | TEST_F(FullStackTest, LargeRoomVP8_5thumb) { |
| 518 | VideoQualityTest::Params large_room; |
| 519 | large_room.call.send_side_bwe = true; |
| 520 | large_room.video = {true, 1280, 720, 30, |
| 521 | 800000, 2500000, 2500000, false, |
| 522 | "VP8", 3, 2, 400000, |
| 523 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 524 | large_room.analyzer = {"largeroom_5thumb", 0.0, 0.0, |
| 525 | kFullStackTestDurationSecs}; |
| 526 | large_room.pipe.loss_percent = 0; |
| 527 | large_room.pipe.queue_delay_ms = 100; |
| 528 | VideoQualityTest::Params video_params_high; |
| 529 | video_params_high.video = { |
| 530 | true, 1280, 720, 30, |
| 531 | 800000, 2500000, 2500000, false, |
| 532 | "VP8", 3, 2, 400000, |
| 533 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 534 | VideoQualityTest::Params video_params_medium; |
| 535 | video_params_medium.video = { |
| 536 | true, 640, 360, 30, |
| 537 | 150000, 500000, 700000, false, |
| 538 | "VP8", 3, 2, 400000, |
| 539 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 540 | VideoQualityTest::Params video_params_low; |
| 541 | video_params_low.video = { |
| 542 | true, 320, 180, 30, |
| 543 | 30000, 150000, 200000, false, |
| 544 | "VP8", 3, 2, 400000, |
| 545 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 546 | |
| 547 | std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
| 548 | DefaultVideoStream(video_params_medium), |
| 549 | DefaultVideoStream(video_params_high)}; |
| 550 | large_room.num_thumbnails = 5; |
| 551 | large_room.ss = {streams, 2, 1, 0}; |
| 552 | RunTest(large_room); |
| 553 | } |
| 554 | |
| 555 | TEST_F(FullStackTest, LargeRoomVP8_15thumb) { |
| 556 | VideoQualityTest::Params large_room; |
| 557 | large_room.call.send_side_bwe = true; |
| 558 | large_room.video = {true, 1280, 720, 30, |
| 559 | 800000, 2500000, 2500000, false, |
| 560 | "VP8", 3, 2, 400000, |
| 561 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 562 | large_room.analyzer = {"largeroom_15thumb", 0.0, 0.0, |
| 563 | kFullStackTestDurationSecs}; |
| 564 | large_room.pipe.loss_percent = 0; |
| 565 | large_room.pipe.queue_delay_ms = 100; |
| 566 | VideoQualityTest::Params video_params_high; |
| 567 | video_params_high.video = { |
| 568 | true, 1280, 720, 30, |
| 569 | 800000, 2500000, 2500000, false, |
| 570 | "VP8", 3, 2, 400000, |
| 571 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 572 | VideoQualityTest::Params video_params_medium; |
| 573 | video_params_medium.video = { |
| 574 | true, 640, 360, 30, |
| 575 | 150000, 500000, 700000, false, |
| 576 | "VP8", 3, 2, 400000, |
| 577 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 578 | VideoQualityTest::Params video_params_low; |
| 579 | video_params_low.video = { |
| 580 | true, 320, 180, 30, |
| 581 | 30000, 150000, 200000, false, |
| 582 | "VP8", 3, 2, 400000, |
| 583 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 584 | |
| 585 | std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
| 586 | DefaultVideoStream(video_params_medium), |
| 587 | DefaultVideoStream(video_params_high)}; |
| 588 | large_room.num_thumbnails = 15; |
| 589 | large_room.ss = {streams, 2, 1, 0}; |
| 590 | RunTest(large_room); |
| 591 | } |
| 592 | |
| 593 | #if defined(WEBRTC_ANDROID) || defined(WEBRTC_WIN) |
| 594 | // Fails on Android and win: |
| 595 | // https://bugs.chromium.org/p/webrtc/issues/detail?id=7301 |
| 596 | #define MAYBE_LargeRoomVP8_50thumb DISABLED_LargeRoomVP8_50thumb |
| 597 | #else |
| 598 | #define MAYBE_LargeRoomVP8_50thumb LargeRoomVP8_50thumb |
| 599 | #endif |
| 600 | |
| 601 | TEST_F(FullStackTest, MAYBE_LargeRoomVP8_50thumb) { |
| 602 | VideoQualityTest::Params large_room; |
| 603 | large_room.call.send_side_bwe = true; |
| 604 | large_room.video = {true, 1280, 720, 30, |
| 605 | 800000, 2500000, 2500000, false, |
| 606 | "VP8", 3, 2, 400000, |
| 607 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 608 | large_room.analyzer = {"largeroom_50thumb", 0.0, 0.0, |
| 609 | kFullStackTestDurationSecs}; |
| 610 | large_room.pipe.loss_percent = 0; |
| 611 | large_room.pipe.queue_delay_ms = 100; |
| 612 | VideoQualityTest::Params video_params_high; |
| 613 | video_params_high.video = { |
| 614 | true, 1280, 720, 30, |
| 615 | 800000, 2500000, 2500000, false, |
| 616 | "VP8", 3, 2, 400000, |
| 617 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 618 | VideoQualityTest::Params video_params_medium; |
| 619 | video_params_medium.video = { |
| 620 | true, 640, 360, 30, |
| 621 | 150000, 500000, 700000, false, |
| 622 | "VP8", 3, 2, 400000, |
| 623 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 624 | VideoQualityTest::Params video_params_low; |
| 625 | video_params_low.video = { |
| 626 | true, 320, 180, 30, |
| 627 | 30000, 150000, 200000, false, |
| 628 | "VP8", 3, 2, 400000, |
| 629 | false, false, "", "ConferenceMotion_1280_720_50"}; |
| 630 | |
| 631 | std::vector<VideoStream> streams = {DefaultVideoStream(video_params_low), |
| 632 | DefaultVideoStream(video_params_medium), |
| 633 | DefaultVideoStream(video_params_high)}; |
| 634 | large_room.num_thumbnails = 50; |
| 635 | large_room.ss = {streams, 2, 1, 0}; |
| 636 | RunTest(large_room); |
| 637 | } |
| 638 | |
| 639 | |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 640 | } // namespace webrtc |