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 | 25 |
| 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 // }; |
26 | 35 |
27 TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) { | 36 TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) { |
28 VideoQualityTest::Params paris_qcif = { | 37 VideoQualityTest::Params paris_qcif = { |
29 {176, 144, 30, 300000, 300000, 300000, "VP8", 1}, | 38 {176, 144, 30, 300000, 300000, 300000, "VP8", 1}, |
30 {"paris_qcif"}, | 39 {"paris_qcif"}, |
31 {}, | 40 {}, |
32 {"net_delay_0_0_plr_0", 36.0, 0.96, kFullStackTestDurationSecs}}; | 41 {"net_delay_0_0_plr_0", 36.0, 0.96, kFullStackTestDurationSecs}}; |
33 RunTest(paris_qcif); | 42 RunTest(paris_qcif); |
34 } | 43 } |
35 | 44 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, | 122 {"foreman_cif_1000kbps_100ms_32pkts_queue", 0.0, 0.0, |
114 kFullStackTestDurationSecs}}; | 123 kFullStackTestDurationSecs}}; |
115 foreman_cif.pipe.queue_length_packets = 32; | 124 foreman_cif.pipe.queue_length_packets = 32; |
116 foreman_cif.pipe.queue_delay_ms = 100; | 125 foreman_cif.pipe.queue_delay_ms = 100; |
117 foreman_cif.pipe.link_capacity_kbps = 1000; | 126 foreman_cif.pipe.link_capacity_kbps = 1000; |
118 RunTest(foreman_cif); | 127 RunTest(foreman_cif); |
119 } | 128 } |
120 | 129 |
121 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) { | 130 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL) { |
122 VideoQualityTest::Params screenshare = { | 131 VideoQualityTest::Params screenshare = { |
123 {1850, 1110, 5, 50000, 200000, 2000000, "VP8", 2, 400000}, | 132 {1850, 1110, 5, 50000, 200000, 2000000, "VP8", 2, 1, 400000}, |
124 {}, // Video-specific. | 133 {}, |
125 {true, 10}, // Screenshare-specific. | 134 {true, 10}, |
126 {"screenshare_slides", 0.0, 0.0, kFullStackTestDurationSecs}}; | 135 {"screenshare_slides", 0.0, 0.0, kFullStackTestDurationSecs}}; |
127 RunTest(screenshare); | 136 RunTest(screenshare); |
128 } | 137 } |
129 | 138 |
130 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { | 139 TEST_F(FullStackTest, ScreenshareSlidesVP8_2TL_Scroll) { |
131 VideoQualityTest::Params config = { | 140 VideoQualityTest::Params config = { |
132 {1850, 1110 / 2, 5, 50000, 200000, 2000000, "VP8", 2, 400000}, | 141 {1850, 1110 / 2, 5, 50000, 200000, 2000000, "VP8", 2, 1, 400000}, |
133 {}, | 142 {}, |
134 {true, 10, 2}, | 143 {true, 10, 2}, |
135 {"screenshare_slides_scrolling", 0.0, 0.0, kFullStackTestDurationSecs}}; | 144 {"screenshare_slides_scrolling", 0.0, 0.0, kFullStackTestDurationSecs}}; |
136 RunTest(config); | 145 RunTest(config); |
137 } | 146 } |
138 | 147 |
139 TEST_F(FullStackTest, ScreenshareSlidesVP9_2TL) { | 148 TEST_F(FullStackTest, ScreenshareSlidesVP9_2TL) { |
140 VideoQualityTest::Params screenshare = { | 149 VideoQualityTest::Params screenshare = { |
141 {1850, 1110, 5, 50000, 200000, 2000000, "VP9", 2, 400000}, | 150 {1850, 1110, 5, 50000, 200000, 2000000, "VP9", 2, 1, 400000}, |
142 {}, | 151 {}, |
143 {true, 10}, | 152 {true, 10}, |
144 {"screenshare_slides_vp9_2tl", 0.0, 0.0, kFullStackTestDurationSecs}}; | 153 {"screenshare_slides_vp9_2tl", 0.0, 0.0, kFullStackTestDurationSecs}}; |
145 RunTest(screenshare); | 154 RunTest(screenshare); |
146 } | 155 } |
147 } // namespace webrtc | 156 } // namespace webrtc |
OLD | NEW |