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_HOST_HOST_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 6 #define REMOTING_HOST_HOST_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 private: | 69 private: |
70 DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl); | 70 DISALLOW_COPY_AND_ASSIGN(MockClientSessionControl); |
71 }; | 71 }; |
72 | 72 |
73 class MockClientSessionEventHandler : public ClientSession::EventHandler { | 73 class MockClientSessionEventHandler : public ClientSession::EventHandler { |
74 public: | 74 public: |
75 MockClientSessionEventHandler(); | 75 MockClientSessionEventHandler(); |
76 ~MockClientSessionEventHandler() override; | 76 ~MockClientSessionEventHandler() override; |
77 | 77 |
78 MOCK_METHOD1(OnSessionAuthenticating, void(ClientSession* client)); | 78 MOCK_METHOD1(OnSessionAuthenticating, void(ClientSession* client)); |
79 MOCK_METHOD1(OnSessionAuthenticated, bool(ClientSession* client)); | 79 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); |
80 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); | 80 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); |
81 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); | 81 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); |
82 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); | 82 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
83 MOCK_METHOD3(OnSessionRouteChange, void( | 83 MOCK_METHOD3(OnSessionRouteChange, void( |
84 ClientSession* client, | 84 ClientSession* client, |
85 const std::string& channel_name, | 85 const std::string& channel_name, |
86 const protocol::TransportRoute& route)); | 86 const protocol::TransportRoute& route)); |
87 | 87 |
88 private: | 88 private: |
89 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 89 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); | 162 MOCK_METHOD2(Init, void(Callback* callback, Mode mode)); |
163 MOCK_METHOD0(Capture, void()); | 163 MOCK_METHOD0(Capture, void()); |
164 | 164 |
165 private: | 165 private: |
166 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); | 166 DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor); |
167 }; | 167 }; |
168 | 168 |
169 } // namespace remoting | 169 } // namespace remoting |
170 | 170 |
171 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 171 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
OLD | NEW |