Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/modules/desktop_capture/screen_capturer_mac_unittest.cc

Issue 2489943004: Remove references of ScreenCapturer and WindowCapturer (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 24 matching lines...) Expand all
35 void CaptureDoneCallback1(DesktopCapturer::Result result, 35 void CaptureDoneCallback1(DesktopCapturer::Result result,
36 std::unique_ptr<DesktopFrame>* frame); 36 std::unique_ptr<DesktopFrame>* frame);
37 37
38 // Verifies that a rectangle explicitly marked as dirty is propagated 38 // Verifies that a rectangle explicitly marked as dirty is propagated
39 // correctly. 39 // correctly.
40 void CaptureDoneCallback2(DesktopCapturer::Result result, 40 void CaptureDoneCallback2(DesktopCapturer::Result result,
41 std::unique_ptr<DesktopFrame>* frame); 41 std::unique_ptr<DesktopFrame>* frame);
42 42
43 protected: 43 protected:
44 void SetUp() override { 44 void SetUp() override {
45 capturer_.reset( 45 capturer_ = DesktopCapturer::CreateScreenCapturer(
46 ScreenCapturer::Create(DesktopCaptureOptions::CreateDefault())); 46 DesktopCaptureOptions::CreateDefault());
47 } 47 }
48 48
49 std::unique_ptr<ScreenCapturer> capturer_; 49 std::unique_ptr<DesktopCapturer> capturer_;
50 MockScreenCapturerCallback callback_; 50 MockScreenCapturerCallback callback_;
51 }; 51 };
52 52
53 void ScreenCapturerMacTest::CaptureDoneCallback1( 53 void ScreenCapturerMacTest::CaptureDoneCallback1(
54 DesktopCapturer::Result result, 54 DesktopCapturer::Result result,
55 std::unique_ptr<DesktopFrame>* frame) { 55 std::unique_ptr<DesktopFrame>* frame) {
56 EXPECT_EQ(result, DesktopCapturer::Result::SUCCESS); 56 EXPECT_EQ(result, DesktopCapturer::Result::SUCCESS);
57 57
58 MacDesktopConfiguration config = MacDesktopConfiguration::GetCurrent( 58 MacDesktopConfiguration config = MacDesktopConfiguration::GetCurrent(
59 MacDesktopConfiguration::BottomLeftOrigin); 59 MacDesktopConfiguration::BottomLeftOrigin);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_->CaptureFrame(); 96 capturer_->CaptureFrame();
97 97
98 // Check that subsequent dirty rects are propagated correctly. 98 // Check that subsequent dirty rects are propagated correctly.
99 capturer_->CaptureFrame(); 99 capturer_->CaptureFrame();
100 } 100 }
101 101
102 } // namespace webrtc 102 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698