| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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 // Temporarily disabled on Android due to low test timeouts. | 130 // Temporarily disabled on Android due to low test timeouts. | 
| 122 // https://code.google.com/p/chromium/issues/detail?id=513170 | 131 // https://code.google.com/p/chromium/issues/detail?id=513170 | 
| 123 #include "webrtc/test/testsupport/gtest_disable.h" | 132 #include "webrtc/test/testsupport/gtest_disable.h" | 
| 124 TEST_F(FullStackTest, DISABLED_ON_ANDROID(ScreenshareSlidesVP8_2TL)) { | 133 TEST_F(FullStackTest, DISABLED_ON_ANDROID(ScreenshareSlidesVP8_2TL)) { | 
| 125   VideoQualityTest::Params screenshare = { | 134   VideoQualityTest::Params screenshare = { | 
| 126       {1850, 1110, 5, 50000, 200000, 2000000, "VP8", 2, 400000}, | 135       {1850, 1110, 5, 50000, 200000, 2000000, "VP8", 2, 1, 400000}, | 
| 127       {},          // Video-specific. | 136       {}, | 
| 128       {true, 10},  // Screenshare-specific. | 137       {true, 10}, | 
| 129       {"screenshare_slides", 0.0, 0.0, kFullStackTestDurationSecs}}; | 138       {"screenshare_slides", 0.0, 0.0, kFullStackTestDurationSecs}}; | 
| 130   RunTest(screenshare); | 139   RunTest(screenshare); | 
| 131 } | 140 } | 
| 132 | 141 | 
| 133 TEST_F(FullStackTest, DISABLED_ON_ANDROID(ScreenshareSlidesVP8_2TL_Scroll)) { | 142 TEST_F(FullStackTest, DISABLED_ON_ANDROID(ScreenshareSlidesVP8_2TL_Scroll)) { | 
| 134   VideoQualityTest::Params config = { | 143   VideoQualityTest::Params config = { | 
| 135       {1850, 1110 / 2, 5, 50000, 200000, 2000000, "VP8", 2, 400000}, | 144       {1850, 1110 / 2, 5, 50000, 200000, 2000000, "VP8", 2, 1, 400000}, | 
| 136       {}, | 145       {}, | 
| 137       {true, 10, 2}, | 146       {true, 10, 2}, | 
| 138       {"screenshare_slides_scrolling", 0.0, 0.0, kFullStackTestDurationSecs}}; | 147       {"screenshare_slides_scrolling", 0.0, 0.0, kFullStackTestDurationSecs}}; | 
| 139   RunTest(config); | 148   RunTest(config); | 
| 140 } | 149 } | 
| 141 | 150 | 
| 142 // Disabled on Android along with VP8 screenshare above. | 151 // Disabled on Android along with VP8 screenshare above. | 
| 143 TEST_F(FullStackTest, DISABLED_ON_ANDROID(ScreenshareSlidesVP9_2TL)) { | 152 TEST_F(FullStackTest, DISABLED_ON_ANDROID(ScreenshareSlidesVP9_2TL)) { | 
| 144   VideoQualityTest::Params screenshare = { | 153   VideoQualityTest::Params screenshare = { | 
| 145       {1850, 1110, 5, 50000, 200000, 2000000, "VP9", 2, 400000}, | 154       {1850, 1110, 5, 50000, 200000, 2000000, "VP9", 2, 1, 400000}, | 
| 146       {}, | 155       {}, | 
| 147       {true, 10}, | 156       {true, 10}, | 
| 148       {"screenshare_slides_vp9_2tl", 0.0, 0.0, kFullStackTestDurationSecs}}; | 157       {"screenshare_slides_vp9_2tl", 0.0, 0.0, kFullStackTestDurationSecs}}; | 
| 149   RunTest(screenshare); | 158   RunTest(screenshare); | 
| 150 } | 159 } | 
| 151 }  // namespace webrtc | 160 }  // namespace webrtc | 
| OLD | NEW | 
|---|