| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 MOCK_METHOD0(Disconnect, void()); | 43 MOCK_METHOD0(Disconnect, void()); |
| 44 | 44 |
| 45 void set_clipboard_stub(ClipboardStub* clipboard_stub) override { | 45 void set_clipboard_stub(ClipboardStub* clipboard_stub) override { |
| 46 clipboard_stub_ = clipboard_stub; | 46 clipboard_stub_ = clipboard_stub; |
| 47 } | 47 } |
| 48 void set_host_stub(HostStub* host_stub) override { host_stub_ = host_stub; } | 48 void set_host_stub(HostStub* host_stub) override { host_stub_ = host_stub; } |
| 49 void set_input_stub(InputStub* input_stub) override { | 49 void set_input_stub(InputStub* input_stub) override { |
| 50 input_stub_ = input_stub; | 50 input_stub_ = input_stub; |
| 51 } | 51 } |
| 52 | 52 |
| 53 void set_video_feedback_stub( |
| 54 VideoFeedbackStub* video_feedback_stub) override { |
| 55 video_feedback_stub_ = video_feedback_stub; |
| 56 } |
| 57 |
| 53 ClipboardStub* clipboard_stub() { return clipboard_stub_; } | 58 ClipboardStub* clipboard_stub() { return clipboard_stub_; } |
| 54 HostStub* host_stub() { return host_stub_; } | 59 HostStub* host_stub() { return host_stub_; } |
| 55 InputStub* input_stub() { return input_stub_; } | 60 InputStub* input_stub() { return input_stub_; } |
| 61 VideoFeedbackStub* video_feedback_stub() { return video_feedback_stub_; } |
| 56 | 62 |
| 57 private: | 63 private: |
| 58 ClipboardStub* clipboard_stub_; | 64 ClipboardStub* clipboard_stub_; |
| 59 HostStub* host_stub_; | 65 HostStub* host_stub_; |
| 60 InputStub* input_stub_; | 66 InputStub* input_stub_; |
| 67 VideoFeedbackStub* video_feedback_stub_; |
| 61 | 68 |
| 62 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient); | 69 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient); |
| 63 }; | 70 }; |
| 64 | 71 |
| 65 class MockConnectionToClientEventHandler : | 72 class MockConnectionToClientEventHandler : |
| 66 public ConnectionToClient::EventHandler { | 73 public ConnectionToClient::EventHandler { |
| 67 public: | 74 public: |
| 68 MockConnectionToClientEventHandler(); | 75 MockConnectionToClientEventHandler(); |
| 69 virtual ~MockConnectionToClientEventHandler(); | 76 virtual ~MockConnectionToClientEventHandler(); |
| 70 | 77 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 // Runs tasks synchronously instead of posting them to |task_runner|. | 277 // Runs tasks synchronously instead of posting them to |task_runner|. |
| 271 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 278 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 272 const tracked_objects::Location& from_here, | 279 const tracked_objects::Location& from_here, |
| 273 const base::Closure& task) override; | 280 const base::Closure& task) override; |
| 274 }; | 281 }; |
| 275 | 282 |
| 276 } // namespace protocol | 283 } // namespace protocol |
| 277 } // namespace remoting | 284 } // namespace remoting |
| 278 | 285 |
| 279 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 286 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |