OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| 9 |
8 #include "remoting/proto/internal.pb.h" | 10 #include "remoting/proto/internal.pb.h" |
9 #include "remoting/protocol/client_stub.h" | 11 #include "remoting/protocol/client_stub.h" |
10 #include "remoting/protocol/connection_to_client.h" | 12 #include "remoting/protocol/connection_to_client.h" |
11 #include "remoting/protocol/host_stub.h" | 13 #include "remoting/protocol/host_stub.h" |
12 #include "remoting/protocol/input_stub.h" | 14 #include "remoting/protocol/input_stub.h" |
13 #include "remoting/protocol/session.h" | 15 #include "remoting/protocol/session.h" |
14 #include "remoting/protocol/video_stub.h" | 16 #include "remoting/protocol/video_stub.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
16 | 18 |
17 namespace remoting { | 19 namespace remoting { |
18 namespace protocol { | 20 namespace protocol { |
19 | 21 |
20 class ChromotocolConnection; | |
21 | |
22 class MockConnectionToClient : public ConnectionToClient { | 22 class MockConnectionToClient : public ConnectionToClient { |
23 public: | 23 public: |
24 MockConnectionToClient(Session* session, | 24 MockConnectionToClient(Session* session, |
25 HostStub* host_stub, | 25 HostStub* host_stub, |
26 InputStub* input_stub); | 26 InputStub* input_stub); |
27 virtual ~MockConnectionToClient(); | 27 virtual ~MockConnectionToClient(); |
28 | 28 |
29 MOCK_METHOD1(Init, void(Session* session)); | 29 MOCK_METHOD1(Init, void(Session* session)); |
30 MOCK_METHOD0(video_stub, VideoStub*()); | 30 MOCK_METHOD0(video_stub, VideoStub*()); |
31 MOCK_METHOD0(client_stub, ClientStub*()); | 31 MOCK_METHOD0(client_stub, ClientStub*()); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 MOCK_METHOD0(Close, void()); | 125 MOCK_METHOD0(Close, void()); |
126 | 126 |
127 private: | 127 private: |
128 DISALLOW_COPY_AND_ASSIGN(MockSession); | 128 DISALLOW_COPY_AND_ASSIGN(MockSession); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace protocol | 131 } // namespace protocol |
132 } // namespace remoting | 132 } // namespace remoting |
133 | 133 |
134 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 134 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |