Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 | 10 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 277 } else { | 277 } else { |
| 278 EXPECT_FALSE(frame); | 278 EXPECT_FALSE(frame); |
| 279 } | 279 } |
| 280 } | 280 } |
| 281 | 281 |
| 282 EXPECT_TRUE(false); | 282 EXPECT_TRUE(false); |
| 283 return nullptr; | 283 return nullptr; |
| 284 } | 284 } |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 TEST_F(ScreenCapturerIntegrationTest, CaptureUpdatedRegion) { | 287 #if defined(WEBRTC_WIN) |
| 288 #if !defined(WEBRTC_WIN) | 288 // ScreenCapturerWinGdi randomly returns blank screen, the root cause is still |
| 289 // ScreenCapturerWinGdi randomly returns blank screen, the root cause is still | 289 // unknown. Bug, https://bugs.chromium.org/p/webrtc/issues/detail?id=6843. |
| 290 // unknown. Bug, https://bugs.chromium.org/p/webrtc/issues/detail?id=6843. | 290 #define MAYBE_CaptureUpdatedRegion MANUAL_CaptureUpdatedRegion |
|
Sergey Ulanov
2016/12/09 23:18:01
s/DISABLE_/MANUAL_/
Hzj_jie
2016/12/09 23:33:19
There is a mail thread between Henrik and me, we w
kjellander_webrtc
2016/12/12 07:30:31
It turns out I misunderstood that MANUAL_ was a pa
| |
| 291 #else | |
| 292 #define MAYBE_CaptureUpdatedRegion CaptureUpdatedRegion | |
| 293 #endif | |
| 294 TEST_F(ScreenCapturerIntegrationTest, MAYBE_CaptureUpdatedRegion) { | |
| 291 TestCaptureUpdatedRegion(); | 295 TestCaptureUpdatedRegion(); |
| 292 #endif | |
| 293 } | 296 } |
| 294 | 297 |
| 295 TEST_F(ScreenCapturerIntegrationTest, TwoCapturers) { | 298 #if defined(WEBRTC_WIN) |
| 296 #if !defined(WEBRTC_WIN) | 299 // ScreenCapturerWinGdi randomly returns blank screen, the root cause is still |
| 297 // ScreenCapturerWinGdi randomly returns blank screen, the root cause is still | 300 // unknown. Bug, https://bugs.chromium.org/p/webrtc/issues/detail?id=6843. |
| 298 // unknown. Bug, https://bugs.chromium.org/p/webrtc/issues/detail?id=6843. | 301 #define MAYBE_TwoCapturers MANUAL_TwoCapturers |
| 302 #else | |
| 303 #define MAYBE_TwoCapturers TwoCapturers | |
| 304 #endif | |
| 305 TEST_F(ScreenCapturerIntegrationTest, MAYBE_TwoCapturers) { | |
| 299 std::unique_ptr<DesktopCapturer> capturer2 = std::move(capturer_); | 306 std::unique_ptr<DesktopCapturer> capturer2 = std::move(capturer_); |
| 300 SetUp(); | 307 SetUp(); |
| 301 TestCaptureUpdatedRegion({capturer_.get(), capturer2.get()}); | 308 TestCaptureUpdatedRegion({capturer_.get(), capturer2.get()}); |
| 302 #endif | |
| 303 } | 309 } |
| 304 | 310 |
| 305 #if defined(WEBRTC_WIN) | 311 #if defined(WEBRTC_WIN) |
| 306 | 312 |
| 307 TEST_F(ScreenCapturerIntegrationTest, CaptureUpdatedRegionWithDirectxCapturer) { | 313 TEST_F(ScreenCapturerIntegrationTest, CaptureUpdatedRegionWithDirectxCapturer) { |
| 308 if (!CreateDirectxCapturer()) { | 314 if (!CreateDirectxCapturer()) { |
| 309 return; | 315 return; |
| 310 } | 316 } |
| 311 | 317 |
| 312 TestCaptureUpdatedRegion(); | 318 TestCaptureUpdatedRegion(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 363 } | 369 } |
| 364 // Even DirectX capturer is not supported in current system, we should be able | 370 // Even DirectX capturer is not supported in current system, we should be able |
| 365 // to select a usable capturer. | 371 // to select a usable capturer. |
| 366 MaybeCreateDirectxCapturer(); | 372 MaybeCreateDirectxCapturer(); |
| 367 TestCaptureUpdatedRegion(); | 373 TestCaptureUpdatedRegion(); |
| 368 } | 374 } |
| 369 | 375 |
| 370 #endif // defined(WEBRTC_WIN) | 376 #endif // defined(WEBRTC_WIN) |
| 371 | 377 |
| 372 } // namespace webrtc | 378 } // namespace webrtc |
| OLD | NEW |