| 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 |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 | 12 |
| 13 #include <algorithm> | 13 #include <algorithm> |
| 14 #include <initializer_list> | 14 #include <initializer_list> |
| 15 #include <iostream> // TODO(zijiehe): Remove once flaky has been resolved. | 15 #include <iostream> // TODO(zijiehe): Remove once flaky has been resolved. |
| 16 #include <memory> | 16 #include <memory> |
| 17 #include <utility> | 17 #include <utility> |
| 18 | 18 |
| 19 // TODO(zijiehe): Remove once flaky has been resolved. | 19 // TODO(zijiehe): Remove once flaky has been resolved. |
| 20 #include "webrtc/base/base64.h" | 20 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" |
| 21 #include "webrtc/base/checks.h" | |
| 22 #include "webrtc/base/constructormagic.h" | |
| 23 #include "webrtc/base/logging.h" | |
| 24 #include "webrtc/modules/desktop_capture/desktop_capturer.h" | 21 #include "webrtc/modules/desktop_capture/desktop_capturer.h" |
| 25 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" | |
| 26 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 22 #include "webrtc/modules/desktop_capture/desktop_frame.h" |
| 27 #include "webrtc/modules/desktop_capture/desktop_region.h" | 23 #include "webrtc/modules/desktop_capture/desktop_region.h" |
| 28 #include "webrtc/modules/desktop_capture/mock_desktop_capturer_callback.h" | 24 #include "webrtc/modules/desktop_capture/mock_desktop_capturer_callback.h" |
| 29 #include "webrtc/modules/desktop_capture/rgba_color.h" | 25 #include "webrtc/modules/desktop_capture/rgba_color.h" |
| 30 #include "webrtc/modules/desktop_capture/screen_drawer.h" | 26 #include "webrtc/modules/desktop_capture/screen_drawer.h" |
| 27 #include "webrtc/rtc_base/base64.h" |
| 28 #include "webrtc/rtc_base/checks.h" |
| 29 #include "webrtc/rtc_base/constructormagic.h" |
| 30 #include "webrtc/rtc_base/logging.h" |
| 31 #include "webrtc/test/gmock.h" | 31 #include "webrtc/test/gmock.h" |
| 32 #include "webrtc/test/gtest.h" | 32 #include "webrtc/test/gtest.h" |
| 33 | 33 |
| 34 #if defined(WEBRTC_WIN) | 34 #if defined(WEBRTC_WIN) |
| 35 #include "webrtc/base/win32.h" | |
| 36 #include "webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h" | 35 #include "webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h" |
| 36 #include "webrtc/rtc_base/win32.h" |
| 37 #endif // defined(WEBRTC_WIN) | 37 #endif // defined(WEBRTC_WIN) |
| 38 | 38 |
| 39 using ::testing::_; | 39 using ::testing::_; |
| 40 | 40 |
| 41 namespace webrtc { | 41 namespace webrtc { |
| 42 | 42 |
| 43 namespace { | 43 namespace { |
| 44 | 44 |
| 45 ACTION_P2(SaveCaptureResult, result, dest) { | 45 ACTION_P2(SaveCaptureResult, result, dest) { |
| 46 *result = arg0; | 46 *result = arg0; |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 } | 369 } |
| 370 // 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 |
| 371 // to select a usable capturer. | 371 // to select a usable capturer. |
| 372 MaybeCreateDirectxCapturer(); | 372 MaybeCreateDirectxCapturer(); |
| 373 TestCaptureUpdatedRegion(); | 373 TestCaptureUpdatedRegion(); |
| 374 } | 374 } |
| 375 | 375 |
| 376 #endif // defined(WEBRTC_WIN) | 376 #endif // defined(WEBRTC_WIN) |
| 377 | 377 |
| 378 } // namespace webrtc | 378 } // namespace webrtc |
| OLD | NEW |