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 <memory> | 15 #include <memory> |
16 #include <utility> | 16 #include <utility> |
17 | 17 |
18 #include "webrtc/modules/desktop_capture/screen_capturer.h" | |
19 | |
20 #include "webrtc/test/gmock.h" | |
21 #include "webrtc/test/gtest.h" | |
22 #include "webrtc/base/checks.h" | 18 #include "webrtc/base/checks.h" |
23 #include "webrtc/base/constructormagic.h" | 19 #include "webrtc/base/constructormagic.h" |
24 #include "webrtc/base/logging.h" | 20 #include "webrtc/base/logging.h" |
25 #include "webrtc/modules/desktop_capture/rgba_color.h" | 21 #include "webrtc/modules/desktop_capture/desktop_capturer.h" |
26 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" | 22 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" |
27 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 23 #include "webrtc/modules/desktop_capture/desktop_frame.h" |
28 #include "webrtc/modules/desktop_capture/desktop_region.h" | 24 #include "webrtc/modules/desktop_capture/desktop_region.h" |
29 #include "webrtc/modules/desktop_capture/mock_desktop_capturer_callback.h" | 25 #include "webrtc/modules/desktop_capture/mock_desktop_capturer_callback.h" |
| 26 #include "webrtc/modules/desktop_capture/rgba_color.h" |
30 #include "webrtc/modules/desktop_capture/screen_drawer.h" | 27 #include "webrtc/modules/desktop_capture/screen_drawer.h" |
| 28 #include "webrtc/test/gmock.h" |
| 29 #include "webrtc/test/gtest.h" |
31 | 30 |
32 #if defined(WEBRTC_WIN) | 31 #if defined(WEBRTC_WIN) |
33 #include "webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h" | 32 #include "webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h" |
34 #endif // defined(WEBRTC_WIN) | 33 #endif // defined(WEBRTC_WIN) |
35 | 34 |
36 using ::testing::_; | 35 using ::testing::_; |
37 | 36 |
38 namespace webrtc { | 37 namespace webrtc { |
39 | 38 |
40 namespace { | 39 namespace { |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 DISABLED_MaybeCaptureUpdatedRegionWithDirectxCapturer) { | 283 DISABLED_MaybeCaptureUpdatedRegionWithDirectxCapturer) { |
285 // Even DirectX capturer is not supported in current system, we should be able | 284 // Even DirectX capturer is not supported in current system, we should be able |
286 // to select a usable capturer. | 285 // to select a usable capturer. |
287 MaybeCreateDirectxCapturer(); | 286 MaybeCreateDirectxCapturer(); |
288 TestCaptureUpdatedRegion(); | 287 TestCaptureUpdatedRegion(); |
289 } | 288 } |
290 | 289 |
291 #endif // defined(WEBRTC_WIN) | 290 #endif // defined(WEBRTC_WIN) |
292 | 291 |
293 } // namespace webrtc | 292 } // namespace webrtc |
OLD | NEW |