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 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "webrtc/modules/desktop_capture/screen_capturer.h" | 13 #include "webrtc/modules/desktop_capture/screen_capturer.h" |
14 | 14 |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "webrtc/base/constructormagic.h" |
17 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" | 18 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" |
18 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 19 #include "webrtc/modules/desktop_capture/desktop_frame.h" |
19 #include "webrtc/modules/desktop_capture/desktop_region.h" | 20 #include "webrtc/modules/desktop_capture/desktop_region.h" |
20 #include "webrtc/modules/desktop_capture/screen_capturer_mock_objects.h" | 21 #include "webrtc/modules/desktop_capture/screen_capturer_mock_objects.h" |
21 | 22 |
22 using ::testing::_; | 23 using ::testing::_; |
23 using ::testing::AnyNumber; | 24 using ::testing::AnyNumber; |
24 using ::testing::Return; | 25 using ::testing::Return; |
25 using ::testing::SaveArg; | 26 using ::testing::SaveArg; |
26 | 27 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 138 |
138 capturer_->Start(&callback_); | 139 capturer_->Start(&callback_); |
139 capturer_->Capture(DesktopRegion()); | 140 capturer_->Capture(DesktopRegion()); |
140 ASSERT_TRUE(frame); | 141 ASSERT_TRUE(frame); |
141 delete frame; | 142 delete frame; |
142 } | 143 } |
143 | 144 |
144 #endif // defined(WEBRTC_WIN) | 145 #endif // defined(WEBRTC_WIN) |
145 | 146 |
146 } // namespace webrtc | 147 } // namespace webrtc |
OLD | NEW |