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

Side by Side Diff: remoting/host/mock_objects.h

Issue 4971003: Inject MessageLoop into Capturer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef REMOTING_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_MOCK_OBJECTS_H_
7 7
8 #include "remoting/host/capturer.h" 8 #include "remoting/host/capturer.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 class MockCapturer : public Capturer { 13 class MockCapturer : public Capturer {
14 public: 14 public:
15 MockCapturer() {} 15 MockCapturer() : Capturer(NULL) {}
16 16
17 MOCK_METHOD0(ScreenConfigurationChanged, void()); 17 MOCK_METHOD0(ScreenConfigurationChanged, void());
18 MOCK_METHOD1(InvalidateRects, void(const InvalidRects& inval_rects)); 18 MOCK_METHOD1(InvalidateRects, void(const InvalidRects& inval_rects));
19 MOCK_METHOD0(InvalidateFullScreen, void()); 19 MOCK_METHOD0(InvalidateFullScreen, void());
20 MOCK_METHOD0(CalculateInvalidRects, void()); 20 MOCK_METHOD0(CalculateInvalidRects, void());
21 MOCK_METHOD1(CaptureInvalidRects, void(CaptureCompletedCallback* callback)); 21 MOCK_METHOD1(CaptureInvalidRects, void(CaptureCompletedCallback* callback));
22 MOCK_METHOD2(CaptureRects, void(const InvalidRects& rects, 22 MOCK_METHOD2(CaptureRects, void(const InvalidRects& rects,
23 CaptureCompletedCallback* callback)); 23 CaptureCompletedCallback* callback));
24 MOCK_CONST_METHOD0(width, int()); 24 MOCK_CONST_METHOD0(width, int());
25 MOCK_CONST_METHOD0(height, int()); 25 MOCK_CONST_METHOD0(height, int());
26 26
27 private: 27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockCapturer); 28 DISALLOW_COPY_AND_ASSIGN(MockCapturer);
29 }; 29 };
30 30
31 } // namespace remoting 31 } // namespace remoting
32 32
33 #endif // REMOTING_HOST_MOCK_OBJECTS_H_ 33 #endif // REMOTING_HOST_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698