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

Side by Side Diff: remoting/host/capturer_mac_unittest.cc

Issue 6780014: Clean up remoting project (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got rid of ref counting on user authenticator Created 9 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/capturer_mac.cc ('k') | remoting/host/capturer_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/capturer.h"
6
5 #include <ApplicationServices/ApplicationServices.h> 7 #include <ApplicationServices/ApplicationServices.h>
6 8
7 #include <iostream> 9 #include <iostream>
8 10
9 #include "base/callback.h" 11 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
11 #include "remoting/base/types.h" 13 #include "remoting/base/types.h"
12 #include "remoting/host/capturer_mac.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 #include "testing/gmock/include/gmock/gmock.h"
14 15
15 namespace remoting { 16 namespace remoting {
16 17
17 class CapturerMacTest : public testing::Test { 18 class CapturerMacTest : public testing::Test {
18 protected: 19 protected:
19 virtual void SetUp() { 20 virtual void SetUp() {
20 capturer_.reset(new CapturerMac()); 21 capturer_.reset(Capturer::Create());
21 } 22 }
22 23
23 void AddDirtyRect() { 24 void AddDirtyRect() {
24 rects_.insert(gfx::Rect(0, 0, 10, 10)); 25 rects_.insert(gfx::Rect(0, 0, 10, 10));
25 } 26 }
26 27
27 scoped_ptr<CapturerMac> capturer_; 28 scoped_ptr<Capturer> capturer_;
28 InvalidRects rects_; 29 InvalidRects rects_;
29 }; 30 };
30 31
31 // CapturerCallback1 verifies that the whole screen is initially dirty. 32 // CapturerCallback1 verifies that the whole screen is initially dirty.
32 class CapturerCallback1 { 33 class CapturerCallback1 {
33 public: 34 public:
34 CapturerCallback1() { } 35 CapturerCallback1() { }
35 void CaptureDoneCallback(scoped_refptr<CaptureData> capture_data); 36 void CaptureDoneCallback(scoped_refptr<CaptureData> capture_data);
36 37
37 private: 38 private:
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const remoting::InvalidRects& rects) { 105 const remoting::InvalidRects& rects) {
105 for (remoting::InvalidRects::const_iterator i = rects.begin(); 106 for (remoting::InvalidRects::const_iterator i = rects.begin();
106 i != rects.end(); 107 i != rects.end();
107 ++i) { 108 ++i) {
108 out << *i << std::endl; 109 out << *i << std::endl;
109 } 110 }
110 return out; 111 return out;
111 } 112 }
112 113
113 } // namespace gfx 114 } // namespace gfx
OLDNEW
« no previous file with comments | « remoting/host/capturer_mac.cc ('k') | remoting/host/capturer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698