| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 class MockClientStub : public ClientStub { | 115 class MockClientStub : public ClientStub { |
| 116 public: | 116 public: |
| 117 MockClientStub(); | 117 MockClientStub(); |
| 118 ~MockClientStub() override; | 118 ~MockClientStub() override; |
| 119 | 119 |
| 120 // ClientStub mock implementation. | 120 // ClientStub mock implementation. |
| 121 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); | 121 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); |
| 122 MOCK_METHOD1(SetPairingResponse, | 122 MOCK_METHOD1(SetPairingResponse, |
| 123 void(const PairingResponse& pairing_response)); | 123 void(const PairingResponse& pairing_response)); |
| 124 MOCK_METHOD1(DeliverHostMessage, void(const ExtensionMessage& message)); | 124 MOCK_METHOD1(DeliverHostMessage, void(const ExtensionMessage& message)); |
| 125 MOCK_METHOD1(SetVideoLayout, void(const VideoLayout& layout)); |
| 125 | 126 |
| 126 // ClipboardStub mock implementation. | 127 // ClipboardStub mock implementation. |
| 127 MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event)); | 128 MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event)); |
| 128 | 129 |
| 129 // CursorShapeStub mock implementation. | 130 // CursorShapeStub mock implementation. |
| 130 MOCK_METHOD1(SetCursorShape, void(const CursorShapeInfo& cursor_shape)); | 131 MOCK_METHOD1(SetCursorShape, void(const CursorShapeInfo& cursor_shape)); |
| 131 | 132 |
| 132 private: | 133 private: |
| 133 DISALLOW_COPY_AND_ASSIGN(MockClientStub); | 134 DISALLOW_COPY_AND_ASSIGN(MockClientStub); |
| 134 }; | 135 }; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // Runs tasks synchronously instead of posting them to |task_runner|. | 235 // Runs tasks synchronously instead of posting them to |task_runner|. |
| 235 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 236 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 236 const tracked_objects::Location& from_here, | 237 const tracked_objects::Location& from_here, |
| 237 const base::Closure& task) override; | 238 const base::Closure& task) override; |
| 238 }; | 239 }; |
| 239 | 240 |
| 240 } // namespace protocol | 241 } // namespace protocol |
| 241 } // namespace remoting | 242 } // namespace remoting |
| 242 | 243 |
| 243 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 244 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |