| 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 "webrtc/modules/desktop_capture/screen_capturer.h" | 11 #include "webrtc/modules/desktop_capture/screen_capturer.h" | 
| 12 | 12 | 
| 13 #include <ApplicationServices/ApplicationServices.h> | 13 #include <ApplicationServices/ApplicationServices.h> | 
| 14 | 14 | 
| 15 #include <memory> | 15 #include <memory> | 
| 16 #include <ostream> | 16 #include <ostream> | 
| 17 | 17 | 
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "webrtc/test/gtest.h" | 
| 19 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" | 19 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" | 
| 20 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 20 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 
| 21 #include "webrtc/modules/desktop_capture/desktop_geometry.h" | 21 #include "webrtc/modules/desktop_capture/desktop_geometry.h" | 
| 22 #include "webrtc/modules/desktop_capture/desktop_region.h" | 22 #include "webrtc/modules/desktop_capture/desktop_region.h" | 
| 23 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" | 23 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" | 
| 24 #include "webrtc/modules/desktop_capture/screen_capturer_mock_objects.h" | 24 #include "webrtc/modules/desktop_capture/screen_capturer_mock_objects.h" | 
| 25 | 25 | 
| 26 using ::testing::_; | 26 using ::testing::_; | 
| 27 using ::testing::AnyNumber; | 27 using ::testing::AnyNumber; | 
| 28 using ::testing::Return; | 28 using ::testing::Return; | 
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 93   capturer_->Start(&callback_); | 93   capturer_->Start(&callback_); | 
| 94 | 94 | 
| 95   // Check that we get an initial full-screen updated. | 95   // Check that we get an initial full-screen updated. | 
| 96   capturer_->Capture(DesktopRegion()); | 96   capturer_->Capture(DesktopRegion()); | 
| 97 | 97 | 
| 98   // Check that subsequent dirty rects are propagated correctly. | 98   // Check that subsequent dirty rects are propagated correctly. | 
| 99   capturer_->Capture(DesktopRegion()); | 99   capturer_->Capture(DesktopRegion()); | 
| 100 } | 100 } | 
| 101 | 101 | 
| 102 }  // namespace webrtc | 102 }  // namespace webrtc | 
| OLD | NEW | 
|---|