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 10 matching lines...) Expand all Loading... |
21 #include "remoting/protocol/transport.h" | 21 #include "remoting/protocol/transport.h" |
22 #include "remoting/protocol/video_stub.h" | 22 #include "remoting/protocol/video_stub.h" |
23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
24 | 24 |
25 namespace remoting { | 25 namespace remoting { |
26 namespace protocol { | 26 namespace protocol { |
27 | 27 |
28 class MockConnectionToClient : public ConnectionToClient { | 28 class MockConnectionToClient : public ConnectionToClient { |
29 public: | 29 public: |
30 MockConnectionToClient(Session* session, | 30 MockConnectionToClient(Session* session, |
31 HostStub* host_stub, | 31 HostStub* host_stub); |
32 InputStub* input_stub); | |
33 virtual ~MockConnectionToClient(); | 32 virtual ~MockConnectionToClient(); |
34 | 33 |
35 MOCK_METHOD1(Init, void(Session* session)); | 34 MOCK_METHOD1(Init, void(Session* session)); |
36 MOCK_METHOD0(video_stub, VideoStub*()); | 35 MOCK_METHOD0(video_stub, VideoStub*()); |
37 MOCK_METHOD0(client_stub, ClientStub*()); | 36 MOCK_METHOD0(client_stub, ClientStub*()); |
38 MOCK_METHOD0(session, Session*()); | 37 MOCK_METHOD0(session, Session*()); |
39 MOCK_METHOD0(Disconnect, void()); | 38 MOCK_METHOD0(Disconnect, void()); |
40 | 39 |
41 private: | 40 private: |
42 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient); | 41 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 }; | 192 }; |
194 | 193 |
195 private: | 194 private: |
196 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); | 195 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); |
197 }; | 196 }; |
198 | 197 |
199 } // namespace protocol | 198 } // namespace protocol |
200 } // namespace remoting | 199 } // namespace remoting |
201 | 200 |
202 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 201 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |