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

Side by Side Diff: remoting/protocol/protocol_mock_objects.h

Issue 10823244: Remove the HostEventStub aggregate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/protocol/host_event_stub.h ('k') | remoting/protocol/protocol_mock_objects.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
11 #include "remoting/proto/internal.pb.h" 11 #include "remoting/proto/internal.pb.h"
12 #include "remoting/proto/video.pb.h" 12 #include "remoting/proto/video.pb.h"
13 #include "remoting/protocol/authenticator.h" 13 #include "remoting/protocol/authenticator.h"
14 #include "remoting/protocol/client_stub.h" 14 #include "remoting/protocol/client_stub.h"
15 #include "remoting/protocol/clipboard_stub.h" 15 #include "remoting/protocol/clipboard_stub.h"
16 #include "remoting/protocol/connection_to_client.h" 16 #include "remoting/protocol/connection_to_client.h"
17 #include "remoting/protocol/host_event_stub.h"
18 #include "remoting/protocol/host_stub.h" 17 #include "remoting/protocol/host_stub.h"
19 #include "remoting/protocol/input_stub.h" 18 #include "remoting/protocol/input_stub.h"
20 #include "remoting/protocol/session.h" 19 #include "remoting/protocol/session.h"
21 #include "remoting/protocol/session_manager.h" 20 #include "remoting/protocol/session_manager.h"
22 #include "remoting/protocol/transport.h" 21 #include "remoting/protocol/transport.h"
23 #include "remoting/protocol/video_stub.h" 22 #include "remoting/protocol/video_stub.h"
24 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
25 24
26 namespace remoting { 25 namespace remoting {
27 namespace protocol { 26 namespace protocol {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 MockInputStub(); 91 MockInputStub();
93 virtual ~MockInputStub(); 92 virtual ~MockInputStub();
94 93
95 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event)); 94 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event));
96 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event)); 95 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event));
97 96
98 private: 97 private:
99 DISALLOW_COPY_AND_ASSIGN(MockInputStub); 98 DISALLOW_COPY_AND_ASSIGN(MockInputStub);
100 }; 99 };
101 100
102 class MockHostEventStub : public HostEventStub {
103 public:
104 MockHostEventStub();
105 virtual ~MockHostEventStub();
106
107 MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event));
108 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event));
109 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event));
110
111 private:
112 DISALLOW_COPY_AND_ASSIGN(MockHostEventStub);
113 };
114
115 class MockHostStub : public HostStub { 101 class MockHostStub : public HostStub {
116 public: 102 public:
117 MockHostStub(); 103 MockHostStub();
118 virtual ~MockHostStub(); 104 virtual ~MockHostStub();
119 105
120 MOCK_METHOD1(NotifyClientDimensions, 106 MOCK_METHOD1(NotifyClientDimensions,
121 void(const ClientDimensions& dimensions)); 107 void(const ClientDimensions& dimensions));
122 MOCK_METHOD1(ControlVideo, 108 MOCK_METHOD1(ControlVideo,
123 void(const VideoControl& video_control)); 109 void(const VideoControl& video_control));
124 110
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 }; 198 };
213 199
214 private: 200 private:
215 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); 201 DISALLOW_COPY_AND_ASSIGN(MockSessionManager);
216 }; 202 };
217 203
218 } // namespace protocol 204 } // namespace protocol
219 } // namespace remoting 205 } // namespace remoting
220 206
221 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 207 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/host_event_stub.h ('k') | remoting/protocol/protocol_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698