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