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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, void(const VideoControl& video_control)); | 107 MOCK_METHOD1(ControlVideo, void(const VideoControl& video_control)); |
108 MOCK_METHOD1(ControlAudio, void(const AudioControl& audio_control)); | 108 MOCK_METHOD1(ControlAudio, void(const AudioControl& audio_control)); |
109 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); | 109 MOCK_METHOD1(SetCapabilities, void(const Capabilities& capabilities)); |
| 110 MOCK_METHOD2(RequestPairing, |
| 111 void (const PairingRequest& pairing_request, |
| 112 const base::Callback<void(const PairingReply&)>& callback); |
110 | 113 |
111 private: | 114 private: |
112 DISALLOW_COPY_AND_ASSIGN(MockHostStub); | 115 DISALLOW_COPY_AND_ASSIGN(MockHostStub); |
113 }; | 116 }; |
114 | 117 |
115 class MockClientStub : public ClientStub { | 118 class MockClientStub : public ClientStub { |
116 public: | 119 public: |
117 MockClientStub(); | 120 MockClientStub(); |
118 virtual ~MockClientStub(); | 121 virtual ~MockClientStub(); |
119 | 122 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 }; | 199 }; |
197 | 200 |
198 private: | 201 private: |
199 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); | 202 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); |
200 }; | 203 }; |
201 | 204 |
202 } // namespace protocol | 205 } // namespace protocol |
203 } // namespace remoting | 206 } // namespace remoting |
204 | 207 |
205 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 208 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |