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 | |
27 TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) { | 26 TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) { |
28 VideoQualityTest::Params paris_qcif = { | 27 VideoQualityTest::Params paris_qcif = { |
29 {176, 144, 30, 300000, 300000, 300000, "VP8", 1}, | 28 {176, 144, 30, 300000, 300000, 300000, "VP8", 1}, |
30 {"paris_qcif"}, | 29 {"paris_qcif"}, |
31 {}, | 30 {}, |
32 {"net_delay_0_0_plr_0", 36.0, 0.96, kFullStackTestDurationSecs}}; | 31 {"net_delay_0_0_plr_0", 36.0, 0.96, kFullStackTestDurationSecs}}; |
33 RunTest(paris_qcif); | 32 RunTest(paris_qcif); |
34 } | 33 } |
35 | 34 |
36 TEST_F(FullStackTest, ForemanCifWithoutPacketLoss) { | 35 TEST_F(FullStackTest, ForemanCifWithoutPacketLoss) { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Disabled on Android along with VP8 screenshare above. | 141 // Disabled on Android along with VP8 screenshare above. |
143 TEST_F(FullStackTest, DISABLED_ON_ANDROID(ScreenshareSlidesVP9_2TL)) { | 142 TEST_F(FullStackTest, DISABLED_ON_ANDROID(ScreenshareSlidesVP9_2TL)) { |
144 VideoQualityTest::Params screenshare = { | 143 VideoQualityTest::Params screenshare = { |
145 {1850, 1110, 5, 50000, 200000, 2000000, "VP9", 2, 400000}, | 144 {1850, 1110, 5, 50000, 200000, 2000000, "VP9", 2, 400000}, |
146 {}, | 145 {}, |
147 {true, 10}, | 146 {true, 10}, |
148 {"screenshare_slides_vp9_2tl", 0.0, 0.0, kFullStackTestDurationSecs}}; | 147 {"screenshare_slides_vp9_2tl", 0.0, 0.0, kFullStackTestDurationSecs}}; |
149 RunTest(screenshare); | 148 RunTest(screenshare); |
150 } | 149 } |
151 } // namespace webrtc | 150 } // namespace webrtc |
OLD | NEW |