OLD | NEW |
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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 MockHostStub(); | 107 MockHostStub(); |
108 virtual ~MockHostStub(); | 108 virtual ~MockHostStub(); |
109 | 109 |
110 MOCK_METHOD1(NotifyClientResolution, | 110 MOCK_METHOD1(NotifyClientResolution, |
111 void(const ClientResolution& resolution)); | 111 void(const ClientResolution& resolution)); |
112 MOCK_METHOD1(ControlVideo, void(const VideoControl& video_control)); | 112 MOCK_METHOD1(ControlVideo, void(const VideoControl& video_control)); |
113 MOCK_METHOD1(ControlAudio, void(const AudioControl& audio_control)); | 113 MOCK_METHOD1(ControlAudio, void(const AudioControl& audio_control)); |
114 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); | 114 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); |
115 MOCK_METHOD1(RequestPairing, | 115 MOCK_METHOD1(RequestPairing, |
116 void(const PairingRequest& pairing_request)); | 116 void(const PairingRequest& pairing_request)); |
| 117 MOCK_METHOD1(DeliverClientMessage, void(const ExtensionMessage& message)); |
117 | 118 |
118 private: | 119 private: |
119 DISALLOW_COPY_AND_ASSIGN(MockHostStub); | 120 DISALLOW_COPY_AND_ASSIGN(MockHostStub); |
120 }; | 121 }; |
121 | 122 |
122 class MockClientStub : public ClientStub { | 123 class MockClientStub : public ClientStub { |
123 public: | 124 public: |
124 MockClientStub(); | 125 MockClientStub(); |
125 virtual ~MockClientStub(); | 126 virtual ~MockClientStub(); |
126 | 127 |
127 // ClientStub mock implementation. | 128 // ClientStub mock implementation. |
128 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); | 129 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); |
129 MOCK_METHOD1(SetPairingResponse, | 130 MOCK_METHOD1(SetPairingResponse, |
130 void(const PairingResponse& pairing_response)); | 131 void(const PairingResponse& pairing_response)); |
| 132 MOCK_METHOD1(DeliverHostMessage, void(const ExtensionMessage& message)); |
131 | 133 |
132 // ClipboardStub mock implementation. | 134 // ClipboardStub mock implementation. |
133 MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event)); | 135 MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event)); |
134 | 136 |
135 // CursorShapeStub mock implementation. | 137 // CursorShapeStub mock implementation. |
136 MOCK_METHOD1(SetCursorShape, void(const CursorShapeInfo& cursor_shape)); | 138 MOCK_METHOD1(SetCursorShape, void(const CursorShapeInfo& cursor_shape)); |
137 | 139 |
138 private: | 140 private: |
139 DISALLOW_COPY_AND_ASSIGN(MockClientStub); | 141 DISALLOW_COPY_AND_ASSIGN(MockClientStub); |
140 }; | 142 }; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 virtual void PostTask( | 241 virtual void PostTask( |
240 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 242 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
241 const tracked_objects::Location& from_here, | 243 const tracked_objects::Location& from_here, |
242 const base::Closure& task) OVERRIDE; | 244 const base::Closure& task) OVERRIDE; |
243 }; | 245 }; |
244 | 246 |
245 } // namespace protocol | 247 } // namespace protocol |
246 } // namespace remoting | 248 } // namespace remoting |
247 | 249 |
248 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 250 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |