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" |
11 #include "remoting/proto/internal.pb.h" | 11 #include "remoting/proto/internal.pb.h" |
12 #include "remoting/proto/video.pb.h" | 12 #include "remoting/proto/video.pb.h" |
13 #include "remoting/protocol/authenticator.h" | 13 #include "remoting/protocol/authenticator.h" |
14 #include "remoting/protocol/client_stub.h" | 14 #include "remoting/protocol/client_stub.h" |
15 #include "remoting/protocol/clipboard_stub.h" | 15 #include "remoting/protocol/clipboard_stub.h" |
16 #include "remoting/protocol/connection_to_client.h" | 16 #include "remoting/protocol/connection_to_client.h" |
17 #include "remoting/protocol/host_event_stub.h" | |
18 #include "remoting/protocol/host_stub.h" | 17 #include "remoting/protocol/host_stub.h" |
19 #include "remoting/protocol/input_stub.h" | 18 #include "remoting/protocol/input_stub.h" |
20 #include "remoting/protocol/session.h" | 19 #include "remoting/protocol/session.h" |
21 #include "remoting/protocol/session_manager.h" | 20 #include "remoting/protocol/session_manager.h" |
22 #include "remoting/protocol/transport.h" | 21 #include "remoting/protocol/transport.h" |
23 #include "remoting/protocol/video_stub.h" | 22 #include "remoting/protocol/video_stub.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
25 | 24 |
26 namespace remoting { | 25 namespace remoting { |
27 namespace protocol { | 26 namespace protocol { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 MockInputStub(); | 91 MockInputStub(); |
93 virtual ~MockInputStub(); | 92 virtual ~MockInputStub(); |
94 | 93 |
95 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event)); | 94 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event)); |
96 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event)); | 95 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event)); |
97 | 96 |
98 private: | 97 private: |
99 DISALLOW_COPY_AND_ASSIGN(MockInputStub); | 98 DISALLOW_COPY_AND_ASSIGN(MockInputStub); |
100 }; | 99 }; |
101 | 100 |
102 class MockHostEventStub : public HostEventStub { | |
103 public: | |
104 MockHostEventStub(); | |
105 virtual ~MockHostEventStub(); | |
106 | |
107 MOCK_METHOD1(InjectClipboardEvent, void(const ClipboardEvent& event)); | |
108 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event)); | |
109 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event)); | |
110 | |
111 private: | |
112 DISALLOW_COPY_AND_ASSIGN(MockHostEventStub); | |
113 }; | |
114 | |
115 class MockHostStub : public HostStub { | 101 class MockHostStub : public HostStub { |
116 public: | 102 public: |
117 MockHostStub(); | 103 MockHostStub(); |
118 virtual ~MockHostStub(); | 104 virtual ~MockHostStub(); |
119 | 105 |
120 MOCK_METHOD1(NotifyClientDimensions, | 106 MOCK_METHOD1(NotifyClientDimensions, |
121 void(const ClientDimensions& dimensions)); | 107 void(const ClientDimensions& dimensions)); |
122 MOCK_METHOD1(ControlVideo, | 108 MOCK_METHOD1(ControlVideo, |
123 void(const VideoControl& video_control)); | 109 void(const VideoControl& video_control)); |
124 | 110 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 }; | 198 }; |
213 | 199 |
214 private: | 200 private: |
215 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); | 201 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); |
216 }; | 202 }; |
217 | 203 |
218 } // namespace protocol | 204 } // namespace protocol |
219 } // namespace remoting | 205 } // namespace remoting |
220 | 206 |
221 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 207 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |