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

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

Issue 3013015: Initial pass at integrating Differ into the chromoting host code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/differ_unittest.cc ('k') | remoting/host/session_manager.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) 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 "media/base/data_buffer.h" 8 #include "media/base/data_buffer.h"
9 #include "remoting/base/protocol_decoder.h" 9 #include "remoting/base/protocol_decoder.h"
10 #include "remoting/host/capturer.h" 10 #include "remoting/host/capturer.h"
11 #include "remoting/host/client_connection.h" 11 #include "remoting/host/client_connection.h"
12 #include "remoting/host/event_executor.h" 12 #include "remoting/host/event_executor.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 14
15 namespace remoting { 15 namespace remoting {
16 16
17 class MockCapturer : public Capturer { 17 class MockCapturer : public Capturer {
18 public: 18 public:
19 MockCapturer() {} 19 MockCapturer() {}
20 20
21 MOCK_METHOD0(ScreenConfigurationChanged, void());
22 MOCK_METHOD1(InvalidateRects, void(const InvalidRects& inval_rects));
23 MOCK_METHOD0(InvalidateFullScreen, void());
24 MOCK_METHOD0(CalculateInvalidRects, void());
21 MOCK_METHOD1(CaptureInvalidRects, void(CaptureCompletedCallback* callback)); 25 MOCK_METHOD1(CaptureInvalidRects, void(CaptureCompletedCallback* callback));
22 MOCK_METHOD2(CaptureRects, void(const RectVector& rects, 26 MOCK_METHOD2(CaptureRects, void(const InvalidRects& rects,
23 CaptureCompletedCallback* callback)); 27 CaptureCompletedCallback* callback));
24 MOCK_METHOD1(InvalidateRects, void(const RectVector& inval_rects));
25 MOCK_METHOD0(InvalidateFullScreen, void());
26 MOCK_METHOD0(ScreenConfigurationChanged, void());
27 MOCK_CONST_METHOD0(width, int()); 28 MOCK_CONST_METHOD0(width, int());
28 MOCK_CONST_METHOD0(height, int()); 29 MOCK_CONST_METHOD0(height, int());
29 30
30 private: 31 private:
31 DISALLOW_COPY_AND_ASSIGN(MockCapturer); 32 DISALLOW_COPY_AND_ASSIGN(MockCapturer);
32 }; 33 };
33 34
34 class MockEventExecutor : public EventExecutor { 35 class MockEventExecutor : public EventExecutor {
35 public: 36 public:
36 MockEventExecutor() {} 37 MockEventExecutor() {}
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer)); 72 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer));
72 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer)); 73 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer));
73 74
74 private: 75 private:
75 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler); 76 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler);
76 }; 77 };
77 78
78 } // namespace remoting 79 } // namespace remoting
79 80
80 #endif // REMOTING_HOST_MOCK_OBJECTS_H_ 81 #endif // REMOTING_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/differ_unittest.cc ('k') | remoting/host/session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698