| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 DISALLOW_COPY_AND_ASSIGN(MockInputStub); | 97 DISALLOW_COPY_AND_ASSIGN(MockInputStub); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 class MockHostStub : public HostStub { | 100 class MockHostStub : public HostStub { |
| 101 public: | 101 public: |
| 102 MockHostStub(); | 102 MockHostStub(); |
| 103 virtual ~MockHostStub(); | 103 virtual ~MockHostStub(); |
| 104 | 104 |
| 105 MOCK_METHOD1(NotifyClientResolution, | 105 MOCK_METHOD1(NotifyClientResolution, |
| 106 void(const ClientResolution& resolution)); | 106 void(const ClientResolution& resolution)); |
| 107 MOCK_METHOD1(ControlVideo, | 107 MOCK_METHOD1(ControlVideo, void(const VideoControl& video_control)); |
| 108 void(const VideoControl& video_control)); | 108 MOCK_METHOD1(ControlAudio, void(const AudioControl& audio_control)); |
| 109 MOCK_METHOD1(ControlAudio, | 109 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); |
| 110 void(const AudioControl& audio_control)); | |
| 111 | 110 |
| 112 private: | 111 private: |
| 113 DISALLOW_COPY_AND_ASSIGN(MockHostStub); | 112 DISALLOW_COPY_AND_ASSIGN(MockHostStub); |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 class MockClientStub : public ClientStub { | 115 class MockClientStub : public ClientStub { |
| 117 public: | 116 public: |
| 118 MockClientStub(); | 117 MockClientStub(); |
| 119 virtual ~MockClientStub(); | 118 virtual ~MockClientStub(); |
| 120 | 119 |
| 120 // ClientStub mock implementation. |
| 121 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); |
| 122 |
| 121 // ClipboardStub mock implementation. | 123 // ClipboardStub mock implementation. |
| 122 MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event)); | 124 MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event)); |
| 123 | 125 |
| 124 // CursorShapeStub mock implementation. | 126 // CursorShapeStub mock implementation. |
| 125 MOCK_METHOD1(SetCursorShape, void(const CursorShapeInfo& cursor_shape)); | 127 MOCK_METHOD1(SetCursorShape, void(const CursorShapeInfo& cursor_shape)); |
| 126 | 128 |
| 127 private: | 129 private: |
| 128 DISALLOW_COPY_AND_ASSIGN(MockClientStub); | 130 DISALLOW_COPY_AND_ASSIGN(MockClientStub); |
| 129 }; | 131 }; |
| 130 | 132 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 }; | 196 }; |
| 195 | 197 |
| 196 private: | 198 private: |
| 197 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); | 199 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 } // namespace protocol | 202 } // namespace protocol |
| 201 } // namespace remoting | 203 } // namespace remoting |
| 202 | 204 |
| 203 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 205 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |