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> |
| 11 | 11 |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "webrtc/video/video_quality_test.h" | 13 #include "webrtc/video/video_quality_test.h" |
| 14 | 14 |
| 15 namespace webrtc { | 15 namespace webrtc { |
| 16 | 16 |
| 17 static const int kFullStackTestDurationSecs = 60; | 17 static const int kFullStackTestDurationSecs = 60; |
| 18 | 18 |
| 19 class FullStackTest : public VideoQualityTest { | 19 class FullStackTest : public VideoQualityTest { |
| 20 public: | 20 public: |
| 21 void RunTest(const VideoQualityTest::Params ¶ms) { | 21 void RunTest(const VideoQualityTest::Params ¶ms) { |
| 22 RunWithAnalyzer(params); | 22 RunWithAnalyzer(params); |
| 23 } | 23 } |
| 24 | 24 |
| 25 void ForemanCifWithoutPacketLoss(const std::string& video_codec) { | 25 void ForemanCifWithoutPacketLoss(const std::string& video_codec) { |
| 26 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. | 26 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
| 27 VideoQualityTest::Params foreman_cif = { | 27 VideoQualityTest::Params foreman_cif; |
| 28 {352, 288, 30, 700000, 700000, 700000, false, video_codec, 1}, | 28 foreman_cif.video = {true, 352, 288, 30, 700000, |
|
stefan-webrtc
2016/09/07 13:33:32
Is this the formatting you get from git cl format?
minyue-webrtc
2016/09/08 09:38:40
Right, git cl format did it. I'd manually reformat
| |
| 29 {"foreman_cif"}, | 29 700000, 700000, false, video_codec, 1, |
| 30 {}, | 30 0, 0, false, "foreman_cif"}; |
| 31 {"foreman_cif_net_delay_0_0_plr_0_" + video_codec, 0.0, 0.0, | 31 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0_" + video_codec, |
| 32 kFullStackTestDurationSecs}}; | 32 0.0, 0.0, kFullStackTestDurationSecs}; |
| 33 RunTest(foreman_cif); | 33 RunTest(foreman_cif); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void ForemanCifPlr5(const std::string& video_codec) { | 36 void ForemanCifPlr5(const std::string& video_codec) { |
| 37 VideoQualityTest::Params foreman_cif = { | 37 VideoQualityTest::Params foreman_cif; |
| 38 {352, 288, 30, 30000, 500000, 2000000, false, video_codec, 1}, | 38 foreman_cif.video = {true, 352, 288, 30, 30000, |
| 39 {"foreman_cif"}, | 39 500000, 2000000, false, video_codec, 1, |
| 40 {}, | 40 0, 0, false, "foreman_cif"}; |
| 41 {"foreman_cif_delay_50_0_plr_5_" + video_codec, 0.0, 0.0, | 41 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5_" + video_codec, 0.0, |
| 42 kFullStackTestDurationSecs}}; | 42 0.0, kFullStackTestDurationSecs}; |
| 43 foreman_cif.pipe.loss_percent = 5; | 43 foreman_cif.pipe.loss_percent = 5; |
| 44 foreman_cif.pipe.queue_delay_ms = 50; | 44 foreman_cif.pipe.queue_delay_ms = 50; |
| 45 RunTest(foreman_cif); | 45 RunTest(foreman_cif); |
| 46 } | 46 } |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 // VideoQualityTest::Params params = { | 49 // VideoQualityTest::Params params = { |
| 50 // { ... }, // Common. | 50 // { ... }, // Common. |
| 51 // { ... }, // Video-specific settings. | 51 // { ... }, // Video-specific settings. |
| 52 // { ... }, // Screenshare-specific settings. | 52 // { ... }, // Screenshare-specific settings. |
| 53 // { ... }, // Analyzer settings. | 53 // { ... }, // Analyzer settings. |
| 54 // pipe, // FakeNetworkPipe::Config | 54 // pipe, // FakeNetworkPipe::Config |
| 55 // { ... }, // Spatial scalability. | 55 // { ... }, // Spatial scalability. |
| 56 // logs // bool | 56 // logs // bool |
| 57 // }; | 57 // }; |
| 58 | 58 |
| 59 #if !defined(RTC_DISABLE_VP9) | 59 #if !defined(RTC_DISABLE_VP9) |
| 60 TEST_F(FullStackTest, ForemanCifWithoutPacketLossVp9) { | 60 TEST_F(FullStackTest, ForemanCifWithoutPacketLossVp9) { |
| 61 ForemanCifWithoutPacketLoss("VP9"); | 61 ForemanCifWithoutPacketLoss("VP9"); |
| 62 } | 62 } |
| 63 | 63 |
| 64 TEST_F(FullStackTest, ForemanCifPlr5Vp9) { | 64 TEST_F(FullStackTest, ForemanCifPlr5Vp9) { |
| 65 ForemanCifPlr5("VP9"); | 65 ForemanCifPlr5("VP9"); |
| 66 } | 66 } |
| 67 #endif // !defined(RTC_DISABLE_VP9) | 67 #endif // !defined(RTC_DISABLE_VP9) |
| 68 | 68 |
| 69 TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) { | 69 TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) { |
| 70 VideoQualityTest::Params paris_qcif = { | 70 VideoQualityTest::Params paris_qcif; |
| 71 {176, 144, 30, 300000, 300000, 300000, false, "VP8", 1, 0, 0, true}, | 71 paris_qcif.video = {true, 176, 144, 30, 300000, 300000, 300000, |
| 72 {"paris_qcif"}, | 72 false, "VP8", 1, 0, 0, true, "paris_qcif"}; |
| 73 {}, | 73 paris_qcif.analyzer = {"net_delay_0_0_plr_0", 36.0, 0.96, |
| 74 {"net_delay_0_0_plr_0", 36.0, 0.96, kFullStackTestDurationSecs}}; | 74 kFullStackTestDurationSecs}; |
| 75 RunTest(paris_qcif); | 75 RunTest(paris_qcif); |
| 76 } | 76 } |
| 77 | 77 |
| 78 TEST_F(FullStackTest, ForemanCifWithoutPacketLoss) { | 78 TEST_F(FullStackTest, ForemanCifWithoutPacketLoss) { |
| 79 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. | 79 // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif. |
| 80 VideoQualityTest::Params foreman_cif = { | 80 VideoQualityTest::Params foreman_cif; |
| 81 {352, 288, 30, 700000, 700000, 700000, false, "VP8", 1, 0, 0, true}, | 81 foreman_cif.video = {true, 352, 288, 30, 700000, 700000, 700000, |
| 82 {"foreman_cif"}, | 82 false, "VP8", 1, 0, 0, true, "foreman_cif"}; |
| 83 {}, | 83 foreman_cif.analyzer = {"foreman_cif_net_delay_0_0_plr_0", 0.0, 0.0, |
| 84 {"foreman_cif_net_delay_0_0_plr_0", 0.0, 0.0, | 84 kFullStackTestDurationSecs}; |
| 85 kFullStackTestDurationSecs}}; | |
| 86 RunTest(foreman_cif); | 85 RunTest(foreman_cif); |
| 87 } | 86 } |
| 88 | 87 |
| 89 TEST_F(FullStackTest, ForemanCifPlr5) { | 88 TEST_F(FullStackTest, ForemanCifPlr5) { |
| 90 VideoQualityTest::Params foreman_cif = { | 89 VideoQualityTest::Params foreman_cif; |
| 91 {352, 288, 30, 30000, 500000, 2000000, false, "VP8", 1, 0, 0, true}, | 90 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, |
| 92 {"foreman_cif"}, | 91 false, "VP8", 1, 0, 0, true, "foreman_cif"}; |
| 93 {}, | 92 foreman_cif.analyzer = {"foreman_cif_delay_50_0_plr_5", 0.0, 0.0, |
| 94 {"foreman_cif_delay_50_0_plr_5", 0.0, 0.0, kFullStackTestDurationSecs}}; | 93 kFullStackTestDurationSecs}; |
| 95 foreman_cif.pipe.loss_percent = 5; | 94 foreman_cif.pipe.loss_percent = 5; |
| 96 foreman_cif.pipe.queue_delay_ms = 50; | 95 foreman_cif.pipe.queue_delay_ms = 50; |
| 97 RunTest(foreman_cif); | 96 RunTest(foreman_cif); |
| 98 } | 97 } |
| 99 | 98 |
| 100 TEST_F(FullStackTest, ForemanCif500kbps) { | 99 TEST_F(FullStackTest, ForemanCif500kbps) { |
| 101 VideoQualityTest::Params foreman_cif = { | 100 VideoQualityTest::Params foreman_cif; |
| 102 {352, 288, 30, 30000, 500000, 2000000, false, "VP8", 1, 0, 0, true}, | 101 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, |
| 103 {"foreman_cif"}, | 102 false, "VP8", 1, 0, 0, true, "foreman_cif"}; |
| 104 {}, | 103 foreman_cif.analyzer = {"foreman_cif_500kbps", 0.0, 0.0, |
| 105 {"foreman_cif_500kbps", 0.0, 0.0, kFullStackTestDurationSecs}}; | 104 kFullStackTestDurationSecs}; |
| 106 foreman_cif.pipe.queue_length_packets = 0; | 105 foreman_cif.pipe.queue_length_packets = 0; |
| 107 foreman_cif.pipe.queue_delay_ms = 0; | 106 foreman_cif.pipe.queue_delay_ms = 0; |
| 108 foreman_cif.pipe.link_capacity_kbps = 500; | 107 foreman_cif.pipe.link_capacity_kbps = 500; |
| 109 RunTest(foreman_cif); | 108 RunTest(foreman_cif); |
| 110 } | 109 } |
| 111 | 110 |
| 112 TEST_F(FullStackTest, ForemanCif500kbpsLimitedQueue) { | 111 TEST_F(FullStackTest, ForemanCif500kbpsLimitedQueue) { |
| 113 VideoQualityTest::Params foreman_cif = { | 112 VideoQualityTest::Params foreman_cif; |
| 114 {352, 288, 30, 30000, 500000, 2000000, false, "VP8", 1, 0, 0, true}, | 113 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, |
| 115 {"foreman_cif"}, | 114 false, "VP8", 1, 0, 0, true, "foreman_cif"}; |
| 116 {}, | 115 foreman_cif.analyzer = {"foreman_cif_500kbps_32pkts_queue", 0.0, 0.0, |
| 117 {"foreman_cif_500kbps_32pkts_queue", 0.0, 0.0, | 116 kFullStackTestDurationSecs}; |
| 118 kFullStackTestDurationSecs}}; | |
| 119 foreman_cif.pipe.queue_length_packets = 32; | 117 foreman_cif.pipe.queue_length_packets = 32; |
| 120 foreman_cif.pipe.queue_delay_ms = 0; | 118 foreman_cif.pipe.queue_delay_ms = 0; |
| 121 foreman_cif.pipe.link_capacity_kbps = 500; | 119 foreman_cif.pipe.link_capacity_kbps = 500; |
| 122 RunTest(foreman_cif); | 120 RunTest(foreman_cif); |
| 123 } | 121 } |
| 124 | 122 |
| 125 TEST_F(FullStackTest, ForemanCif500kbps100ms) { | 123 TEST_F(FullStackTest, ForemanCif500kbps100ms) { |
| 126 VideoQualityTest::Params foreman_cif = { | 124 VideoQualityTest::Params foreman_cif; |
| 127 {352, 288, 30, 30000, 500000, 2000000, false, "VP8", 1, 0, 0, true}, | 125 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, |
| 128 {"foreman_cif"}, | 126 false, "VP8", 1, 0, 0, true, "foreman_cif"}; |
| 129 {}, | 127 foreman_cif.analyzer = {"foreman_cif_500kbps_100ms", 0.0, 0.0, |
| 130 {"foreman_cif_500kbps_100ms", 0.0, 0.0, kFullStackTestDurationSecs}}; | 128 kFullStackTestDurationSecs}; |
| 131 foreman_cif.pipe.queue_length_packets = 0; | 129 foreman_cif.pipe.queue_length_packets = 0; |
| 132 foreman_cif.pipe.queue_delay_ms = 100; | 130 foreman_cif.pipe.queue_delay_ms = 100; |
| 133 foreman_cif.pipe.link_capacity_kbps = 500; | 131 foreman_cif.pipe.link_capacity_kbps = 500; |
| 134 RunTest(foreman_cif); | 132 RunTest(foreman_cif); |
| 135 } | 133 } |
| 136 | 134 |
| 137 TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueue) { | 135 TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueue) { |
| 138 VideoQualityTest::Params foreman_cif = { | 136 VideoQualityTest::Params foreman_cif; |
| 139 {352, 288, 30, 30000, 500000, 2000000, false, "VP8", 1, 0, 0, true}, | 137 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, |
| 140 {"foreman_cif"}, | 138 false, "VP8", 1, 0, 0, true, "foreman_cif"}; |
| 141 {}, | 139 foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 142 {"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0, | 140 kFullStackTestDurationSecs}; |
| 143 kFullStackTestDurationSecs}}; | |
| 144 foreman_cif.pipe.queue_length_packets = 32; | 141 foreman_cif.pipe.queue_length_packets = 32; |
| 145 foreman_cif.pipe.queue_delay_ms = 100; | 142 foreman_cif.pipe.queue_delay_ms = 100; |
| 146 foreman_cif.pipe.link_capacity_kbps = 500; | 143 foreman_cif.pipe.link_capacity_kbps = 500; |
| 147 RunTest(foreman_cif); | 144 RunTest(foreman_cif); |
| 148 } | 145 } |
| 149 | 146 |
| 150 TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueueRecvBwe) { | 147 TEST_F(FullStackTest, ForemanCif500kbps100msLimitedQueueRecvBwe) { |
| 151 VideoQualityTest::Params foreman_cif = { | 148 VideoQualityTest::Params foreman_cif; |
| 152 {352, 288, 30, 30000, 500000, 2000000, false, "VP8", 1, 0, 0, false}, | 149 foreman_cif.video = {true, 352, 288, 30, 30000, 500000, 2000000, |
| 153 {"foreman_cif"}, | 150 false, "VP8", 1, 0, 0, false, "foreman_cif"}; |
| 154 {}, | 151 foreman_cif.analyzer = {"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 155 {"foreman_cif_500kbps_100ms_32pkts_queue", 0.0, 0.0, | 152 kFullStackTestDurationSecs}; |
| 156 kFullStackTestDurationSecs}}; | |
| 157 foreman_cif.pipe.queue_length_packets = 32; | 153 foreman_cif.pipe.queue_length_packets = 32; |
| 158 foreman_cif.pipe.queue_delay_ms = 100; | 154 foreman_cif.pipe.queue_delay_ms = 100; |
| 159 foreman_cif.pipe.link_capacity_kbps = 500; | 155 foreman_cif.pipe.link_capacity_kbps = 500; |
| 160 RunTest(foreman_cif); | 156 RunTest(foreman_cif); |
| 161 } | 157 } |
| 162 | 158 |
| 163 TEST_F(FullStackTest, ForemanCif1000kbps100msLimitedQueue) { | 159 TEST_F(FullStackTest, ForemanCif1000kbps100msLimitedQueue) { |
| 164 VideoQualityTest::Params foreman_cif = { | 160 VideoQualityTest::Params foreman_cif; |
| 165 {352, 288, 30, 30000, 2000000, 2000000, false, "VP8", 1, 0, 0, true}, | 161 foreman_cif.video = {true, 352, 288, 30, 30000, 2000000, 2000000, |
| 166 {"foreman_cif"}, | 162 false, "VP8", 1, 0, 0, true, "foreman_cif"}; |
| 167 {}, | 163 foreman_cif.analyzer = {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, |
| 168 {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, | 164 kFullStackTestDurationSecs}; |
| 169 kFullStackTestDurationSecs}}; | |
| 170 foreman_cif.pipe.queue_length_packets = 32; | 165 foreman_cif.pipe.queue_length_packets = 32; |
| 171 foreman_cif.pipe.queue_delay_ms = 100; | 166 foreman_cif.pipe.queue_delay_ms = 100; |
| 172 foreman_cif.pipe.link_capacity_kbps = 1000; | 167 foreman_cif.pipe.link_capacity_kbps = 1000; |
| 173 RunTest(foreman_cif); | 168 RunTest(foreman_cif); |
| 174 } | 169 } |
| 175 | 170 |
| 176 TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueue) { | 171 TEST_F(FullStackTest, ConferenceMotionHd2000kbps100msLimitedQueue) { |
| 177 VideoQualityTest::Params conf_motion_hd = { | 172 VideoQualityTest::Params conf_motion_hd; |
| 178 {1280, 720, 50, 30000, 3000000, 3000000, false, "VP8", 1, 0, 0, true}, | 173 conf_motion_hd.video = { |
| 179 {"ConferenceMotion_1280_720_50"}, | 174 true, 1280, 720, 50, 30000, 3000000, 3000000, |
| 180 {}, | 175 false, "VP8", 1, 0, 0, true, "ConferenceMotion_1280_720_50"}; |
| 181 {"conference_motion_hd_2000kbps_100ms_32pkts_queue", 0.0, 0.0, | 176 conf_motion_hd.analyzer = {"conference_motion_hd_2000kbps_100ms_32pkts_queue", |
| 182 kFullStackTestDurationSecs}}; | 177 0.0, 0.0, kFullStackTestDurationSecs}; |
| 183 conf_motion_hd.pipe.queue_length_packets = 32; | 178 conf_motion_hd.pipe.queue_length_packets = 32; |
| 184 conf_motion_hd.pipe.queue_delay_ms = 100; | 179 conf_motion_hd.pipe.queue_delay_ms = 100; |
| 185 conf_motion_hd.pipe.link_capacity_kbps = 2000; | 180 conf_motion_hd.pipe.link_capacity_kbps = 2000; |
| 186 RunTest(conf_motion_hd); | 181 RunTest(conf_motion_hd); |
| 187 } | 182 } |
| 188 | 183 |
| 189 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) { | 184 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) { |
| 190 VideoQualityTest::Params screenshare = { | 185 VideoQualityTest::Params screenshare; |
| 191 {1850, 1110, 5, 50000, 200000, 2000000, false, "VP8", 2, 1, 400000, true}, | 186 screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, |
| 192 {}, | 187 false, "VP8", 2, 1, 400000, true, ""}; |
| 193 {true, 10}, | 188 screenshare.screenshare = {true, 10}; |
| 194 {"screenshare_slides", 0.0, 0.0, kFullStackTestDurationSecs}}; | 189 screenshare.analyzer = {"screenshare_slides", 0.0, 0.0, |
| 190 kFullStackTestDurationSecs}; | |
| 195 RunTest(screenshare); | 191 RunTest(screenshare); |
| 196 } | 192 } |
| 197 | 193 |
| 198 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { | 194 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { |
| 199 VideoQualityTest::Params config = { | 195 VideoQualityTest::Params config; |
| 200 {1850, 1110 / 2, 5, 50000, 200000, 2000000, false, "VP8", 2, 1, 400000, | 196 config.video = {true, 1850, 1110 / 2, 5, 50000, 200000, 2000000, |
| 201 true}, | 197 false, "VP8", 2, 1, 400000, true, ""}; |
| 202 {}, | 198 config.screenshare = {true, 10, 2}; |
| 203 {true, 10, 2}, | 199 config.analyzer = {"screenshare_slides_scrolling", 0.0, 0.0, |
| 204 {"screenshare_slides_scrolling", 0.0, 0.0, kFullStackTestDurationSecs}}; | 200 kFullStackTestDurationSecs}; |
| 205 RunTest(config); | 201 RunTest(config); |
| 206 } | 202 } |
| 207 | 203 |
| 208 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNet) { | 204 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_LossyNet) { |
| 209 VideoQualityTest::Params screenshare = { | 205 VideoQualityTest::Params screenshare; |
| 210 {1850, 1110, 5, 50000, 200000, 2000000, false, "VP8", 2, 1, 400000, true}, | 206 screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, |
| 211 {}, // Video-specific. | 207 false, "VP8", 2, 1, 400000, true, ""}; |
| 212 {true, 10}, // Screenshare-specific. | 208 screenshare.screenshare = {true, 10}; |
| 213 {"screenshare_slides_lossy_net", 0.0, 0.0, kFullStackTestDurationSecs}}; | 209 screenshare.analyzer = {"screenshare_slides_lossy_net", 0.0, 0.0, |
| 210 kFullStackTestDurationSecs}; | |
| 214 screenshare.pipe.loss_percent = 5; | 211 screenshare.pipe.loss_percent = 5; |
| 215 screenshare.pipe.queue_delay_ms = 200; | 212 screenshare.pipe.queue_delay_ms = 200; |
| 216 screenshare.pipe.link_capacity_kbps = 500; | 213 screenshare.pipe.link_capacity_kbps = 500; |
| 217 RunTest(screenshare); | 214 RunTest(screenshare); |
| 218 } | 215 } |
| 219 | 216 |
| 220 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_VeryLossyNet) { | 217 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_VeryLossyNet) { |
| 221 VideoQualityTest::Params screenshare = { | 218 VideoQualityTest::Params screenshare; |
| 222 {1850, 1110, 5, 50000, 200000, 2000000, false, "VP8", 2, 1, 400000, true}, | 219 screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, |
| 223 {}, // Video-specific. | 220 false, "VP8", 2, 1, 400000, true, ""}; |
| 224 {true, 10}, // Screenshare-specific. | 221 screenshare.screenshare = {true, 10}; |
| 225 {"screenshare_slides_very_lossy", 0.0, 0.0, kFullStackTestDurationSecs}}; | 222 screenshare.analyzer = {"screenshare_slides_very_lossy", 0.0, 0.0, |
| 223 kFullStackTestDurationSecs}; | |
| 226 screenshare.pipe.loss_percent = 10; | 224 screenshare.pipe.loss_percent = 10; |
| 227 screenshare.pipe.queue_delay_ms = 200; | 225 screenshare.pipe.queue_delay_ms = 200; |
| 228 screenshare.pipe.link_capacity_kbps = 500; | 226 screenshare.pipe.link_capacity_kbps = 500; |
| 229 RunTest(screenshare); | 227 RunTest(screenshare); |
| 230 } | 228 } |
| 231 | 229 |
| 232 #if !defined(RTC_DISABLE_VP9) | 230 #if !defined(RTC_DISABLE_VP9) |
| 233 TEST_F(FullStackTest, ScreenshareSlidesVP9_2SL) { | 231 TEST_F(FullStackTest, ScreenshareSlidesVP9_2SL) { |
| 234 VideoQualityTest::Params screenshare = { | 232 VideoQualityTest::Params screenshare; |
| 235 {1850, 1110, 5, 50000, 200000, 2000000, false, "VP9", 1, 0, 400000, true}, | 233 screenshare.video = {true, 1850, 1110, 5, 50000, 200000, 2000000, |
| 236 {}, | 234 false, "VP9", 1, 0, 400000, true, ""}; |
| 237 {true, 10}, | 235 screenshare.screenshare = {true, 10}; |
| 238 {"screenshare_slides_vp9_2sl", 0.0, 0.0, kFullStackTestDurationSecs}, | 236 screenshare.analyzer = {"screenshare_slides_vp9_2sl", 0.0, 0.0, |
| 239 {}, | 237 kFullStackTestDurationSecs}; |
| 240 false, | 238 screenshare.logs = false; |
| 241 {std::vector<VideoStream>(), 0, 2, 1}}; | 239 screenshare.ss = {std::vector<VideoStream>(), 0, 2, 1}; |
| 242 RunTest(screenshare); | 240 RunTest(screenshare); |
| 243 } | 241 } |
| 244 #endif // !defined(RTC_DISABLE_VP9) | 242 #endif // !defined(RTC_DISABLE_VP9) |
| 245 } // namespace webrtc | 243 } // namespace webrtc |
| OLD | NEW |