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 | |
sprang@webrtc.org | 343096a | 2015-02-23 08:34:17 +0000 | [diff] [blame] | 82 | TEST_F(FullStackTest, ForemanCifPlr5) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 83 | VideoQualityTest::Params foreman_cif; |
| 84 | foreman_cif.call.send_side_bwe = true; |
| 85 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 86 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 87 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5", 0.0, 0.0, |
| 88 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 89 | foreman_cif.pipe.loss_percent = 5; |
| 90 | foreman_cif.pipe.queue_delay_ms = 50; |
stefan@webrtc.org | c216b9a | 2014-10-14 10:38:49 +0000 | [diff] [blame] | 91 | RunTest(foreman_cif); |
| 92 | } |
| 93 | |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 94 | TEST_F(FullStackTest, ForemanCifPlr5Ulpfec) { |
| 95 | VideoQualityTest::Params foreman_cif; |
| 96 | foreman_cif.call.send_side_bwe = true; |
| 97 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
| 98 | 1, 0, 0, true, false, "", "foreman_cif"}; |
| 99 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_ulpfec", 0.0, 0.0, |
| 100 | kFullStackTestDurationSecs}; |
| 101 | foreman_cif.pipe.loss_percent = 5; |
| 102 | foreman_cif.pipe.queue_delay_ms = 50; |
| 103 | RunTest(foreman_cif); |
| 104 | } |
| 105 | |
| 106 | TEST_F(FullStackTest, ForemanCifPlr5Flexfec) { |
| 107 | VideoQualityTest::Params foreman_cif; |
| 108 | foreman_cif.call.send_side_bwe = true; |
| 109 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
| 110 | 1, 0, 0, false, true, "", "foreman_cif"}; |
| 111 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_flexfec", 0.0, 0.0, |
| 112 | kFullStackTestDurationSecs}; |
| 113 | foreman_cif.pipe.loss_percent = 5; |
| 114 | foreman_cif.pipe.queue_delay_ms = 50; |
| 115 | RunTest(foreman_cif); |
| 116 | } |
| 117 | |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 118 | #if defined(WEBRTC_USE_H264) |
| 119 | TEST_F(FullStackTest, ForemanCifWithoutPacketlossH264) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 120 | // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
| 121 | VideoQualityTest::Params foreman_cif; |
| 122 | foreman_cif.call.send_side_bwe = true; |
| 123 | foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, false, |
| 124 | "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, |
| 126 | kFullStackTestDurationSecs}; |
| 127 | RunTest(foreman_cif); |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 128 | } |
| 129 | |
| 130 | TEST_F(FullStackTest, ForemanCifPlr5H264) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 131 | VideoQualityTest::Params foreman_cif; |
| 132 | foreman_cif.call.send_side_bwe = true; |
| 133 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, |
| 134 | "H264", 1, 0, 0, false, false, "", "foreman_cif"}; |
| 135 | std::string fec_description; |
| 136 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264", 0.0, 0.0, |
| 137 | kFullStackTestDurationSecs}; |
| 138 | foreman_cif.pipe.loss_percent = 5; |
| 139 | foreman_cif.pipe.queue_delay_ms = 50; |
| 140 | RunTest(foreman_cif); |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | // Verify that this is worth the bot time, before enabling. |
| 144 | TEST_F(FullStackTest, ForemanCifPlr5H264Flexfec) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 145 | VideoQualityTest::Params foreman_cif; |
| 146 | foreman_cif.call.send_side_bwe = true; |
| 147 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, |
| 148 | "H264", 1, 0, 0, false, true, "", "foreman_cif"}; |
| 149 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264_flexfec", 0.0, 0.0, |
| 150 | kFullStackTestDurationSecs}; |
| 151 | foreman_cif.pipe.loss_percent = 5; |
| 152 | foreman_cif.pipe.queue_delay_ms = 50; |
| 153 | RunTest(foreman_cif); |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 154 | } |
| 155 | |
| 156 | // Ulpfec with H264 is an unsupported combination, so this test is only useful |
| 157 | // for debugging. It is therefore disabled by default. |
| 158 | TEST_F(FullStackTest, DISABLED_ForemanCifPlr5H264Ulpfec) { |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 159 | VideoQualityTest::Params foreman_cif; |
| 160 | foreman_cif.call.send_side_bwe = true; |
| 161 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, |
| 162 | "H264", 1, 0, 0, true, false, "", "foreman_cif"}; |
| 163 | foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_H264_ulpfec", 0.0, 0.0, |
| 164 | kFullStackTestDurationSecs}; |
| 165 | foreman_cif.pipe.loss_percent = 5; |
| 166 | foreman_cif.pipe.queue_delay_ms = 50; |
| 167 | RunTest(foreman_cif); |
brandtr | dd369c6 | 2016-11-16 23:56:57 -0800 | [diff] [blame] | 168 | } |
| 169 | #endif // defined(WEBRTC_USE_H264) |
| 170 | |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 171 | TEST_F(FullStackTest, ForemanCif500kbps) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 172 | VideoQualityTest::Params foreman_cif; |
| 173 | foreman_cif.call.send_side_bwe = true; |
| 174 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 175 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 176 | foreman_cif.analyzer = {"foreman_cif_500kbps", 0.0, 0.0, |
| 177 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 178 | foreman_cif.pipe.queue_length_packets = 0; |
| 179 | foreman_cif.pipe.queue_delay_ms = 0; |
| 180 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 181 | RunTest(foreman_cif); |
| 182 | } |
| 183 | |
| 184 | TEST_F(FullStackTest, ForemanCif500kbpsLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 185 | VideoQualityTest::Params foreman_cif; |
| 186 | foreman_cif.call.send_side_bwe = true; |
| 187 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 188 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 189 | foreman_cif.analyzer = {"foreman_cif_500kbps_32pkts_queue", 0.0, 0.0, |
| 190 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 191 | foreman_cif.pipe.queue_length_packets = 32; |
| 192 | foreman_cif.pipe.queue_delay_ms = 0; |
| 193 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 194 | RunTest(foreman_cif); |
| 195 | } |
| 196 | |
| 197 | TEST_F(FullStackTest, ForemanCif500kbps100ms) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 198 | VideoQualityTest::Params foreman_cif; |
| 199 | foreman_cif.call.send_side_bwe = true; |
| 200 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 201 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 202 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms", 0.0, 0.0, |
| 203 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 204 | foreman_cif.pipe.queue_length_packets = 0; |
| 205 | foreman_cif.pipe.queue_delay_ms = 100; |
| 206 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 207 | RunTest(foreman_cif); |
| 208 | } |
| 209 | |
| 210 | TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 211 | VideoQualityTest::Params foreman_cif; |
| 212 | foreman_cif.call.send_side_bwe = true; |
| 213 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 214 | 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 215 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 216 | kFullStackTestDurationSecs}; |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 217 | foreman_cif.pipe.queue_length_packets = 32; |
| 218 | foreman_cif.pipe.queue_delay_ms = 100; |
| 219 | foreman_cif.pipe.link_capacity_kbps = 500; |
| 220 | RunTest(foreman_cif); |
| 221 | } |
| 222 | |
| 223 | TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueueRecvBwe) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 224 | VideoQualityTest::Params foreman_cif; |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 225 | foreman_cif.call.send_side_bwe = false; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 226 | foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, false, "VP8", |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 227 | 1, 0, 0, false, false, "", "foreman_cif"}; |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 228 | foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue_recv_bwe", |
| 229 | 0.0, 0.0, kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 230 | foreman_cif.pipe.queue_length_packets = 32; |
| 231 | foreman_cif.pipe.queue_delay_ms = 100; |
| 232 | foreman_cif.pipe.link_capacity_kbps = 500; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 233 | RunTest(foreman_cif); |
| 234 | } |
| 235 | |
| 236 | TEST_F(FullStackTest, ForemanCif1000kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 237 | VideoQualityTest::Params foreman_cif; |
| 238 | foreman_cif.call.send_side_bwe = true; |
| 239 | foreman_cif.video = {true, 352, 288, 30, 30000, 2000000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 240 | "VP8", 1, 0, 0, false, false, "", "foreman_cif"}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 241 | foreman_cif.analyzer = {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 242 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 243 | foreman_cif.pipe.queue_length_packets = 32; |
| 244 | foreman_cif.pipe.queue_delay_ms = 100; |
| 245 | foreman_cif.pipe.link_capacity_kbps = 1000; |
stefan@webrtc.org | b8e9e44 | 2014-07-09 11:29:06 +0000 | [diff] [blame] | 246 | RunTest(foreman_cif); |
| 247 | } |
sprang@webrtc.org | 131bea8 | 2015-02-18 12:46:06 +0000 | [diff] [blame] | 248 | |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 249 | TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueue) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 250 | VideoQualityTest::Params conf_motion_hd; |
| 251 | conf_motion_hd.call.send_side_bwe = true; |
| 252 | conf_motion_hd.video = {true, 1280, 720, 50, 30000, 3000000, 3000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 253 | "VP8", 1, 0, 0, false, false, "", |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 254 | "ConferenceMotion_1280_720_50"}; |
| 255 | conf_motion_hd.analyzer = {"conference_motion_hd_2000kbps_100ms_32pkts_queue", |
| 256 | 0.0, 0.0, kFullStackTestDurationSecs}; |
stefan | b179767 | 2016-08-11 07:00:57 -0700 | [diff] [blame] | 257 | conf_motion_hd.pipe.queue_length_packets = 32; |
| 258 | conf_motion_hd.pipe.queue_delay_ms = 100; |
| 259 | conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 260 | RunTest(conf_motion_hd); |
| 261 | } |
| 262 | |
ivica | 7bd242e | 2015-10-06 02:04:06 -0700 | [diff] [blame] | 263 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 264 | VideoQualityTest::Params screenshare; |
| 265 | screenshare.call.send_side_bwe = true; |
| 266 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 267 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 268 | screenshare.screenshare = {true, 10}; |
| 269 | screenshare.analyzer = {"screenshare_slides", 0.0, 0.0, |
| 270 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 271 | RunTest(screenshare); |
Erik Språng | 6ee69aa | 2015-09-03 15:58:05 +0200 | [diff] [blame] | 272 | } |
| 273 | |
ivica | 7bd242e | 2015-10-06 02:04:06 -0700 | [diff] [blame] | 274 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 275 | VideoQualityTest::Params config; |
| 276 | config.call.send_side_bwe = true; |
| 277 | config.video = {true, 1850, 1110 / 2, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 278 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 279 | config.screenshare = {true, 10, 2}; |
| 280 | config.analyzer = {"screenshare_slides_scrolling", 0.0, 0.0, |
| 281 | kFullStackTestDurationSecs}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 282 | RunTest(config); |
ivica | 028cf48 | 2015-07-30 02:15:56 -0700 | [diff] [blame] | 283 | } |
| 284 | |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 285 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNet) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 286 | VideoQualityTest::Params screenshare; |
| 287 | screenshare.call.send_side_bwe = true; |
| 288 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 289 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 290 | screenshare.screenshare = {true, 10}; |
| 291 | screenshare.analyzer = {"screenshare_slides_lossy_net", 0.0, 0.0, |
| 292 | kFullStackTestDurationSecs}; |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 293 | screenshare.pipe.loss_percent = 5; |
| 294 | screenshare.pipe.queue_delay_ms = 200; |
| 295 | screenshare.pipe.link_capacity_kbps = 500; |
| 296 | RunTest(screenshare); |
| 297 | } |
| 298 | |
| 299 | TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_VeryLossyNet) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 300 | VideoQualityTest::Params screenshare; |
| 301 | screenshare.call.send_side_bwe = true; |
| 302 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 303 | "VP8", 2, 1, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 304 | screenshare.screenshare = {true, 10}; |
| 305 | screenshare.analyzer = {"screenshare_slides_very_lossy", 0.0, 0.0, |
| 306 | kFullStackTestDurationSecs}; |
sprang | ee37de3 | 2015-11-23 06:10:23 -0800 | [diff] [blame] | 307 | screenshare.pipe.loss_percent = 10; |
| 308 | screenshare.pipe.queue_delay_ms = 200; |
| 309 | screenshare.pipe.link_capacity_kbps = 500; |
| 310 | RunTest(screenshare); |
| 311 | } |
| 312 | |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 313 | #if !defined(RTC_DISABLE_VP9) |
philipel | cfc319b | 2015-11-10 07:17:23 -0800 | [diff] [blame] | 314 | TEST_F(FullStackTest, ScreenshareSlidesVP9_2SL) { |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 315 | VideoQualityTest::Params screenshare; |
| 316 | screenshare.call.send_side_bwe = true; |
| 317 | screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, false, |
brandtr | 1293aca | 2016-11-16 22:47:29 -0800 | [diff] [blame] | 318 | "VP9", 1, 0, 400000, false, false, "", ""}; |
minyue | 626bc95 | 2016-10-31 05:47:02 -0700 | [diff] [blame] | 319 | screenshare.screenshare = {true, 10}; |
| 320 | screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, |
| 321 | kFullStackTestDurationSecs}; |
| 322 | screenshare.logs = false; |
| 323 | screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; |
ivica | 5d6a06c | 2015-09-17 05:30:24 -0700 | [diff] [blame] | 324 | RunTest(screenshare); |
sprang@webrtc.org | 131bea8 | 2015-02-18 12:46:06 +0000 | [diff] [blame] | 325 | } |
Peter Boström | 1299615 | 2016-05-14 02:03:18 +0200 | [diff] [blame] | 326 | #endif // !defined(RTC_DISABLE_VP9) |
brandtr | 93c5d03 | 2016-11-30 07:50:07 -0800 | [diff] [blame] | 327 | |
pbos@webrtc.org | af8d5af | 2013-07-09 08:02:33 +0000 | [diff] [blame] | 328 | } // namespace webrtc |