| 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 "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
| 9 #include "remoting/host/video_frame_capturer.h" | 9 #include "remoting/host/video_frame_capturer.h" |
| 10 #include "remoting/host/chromoting_host_context.h" | 10 #include "remoting/host/chromoting_host_context.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); | 105 MOCK_METHOD1(OnSessionAuthenticated, void(ClientSession* client)); |
| 106 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); | 106 MOCK_METHOD1(OnSessionChannelsConnected, void(ClientSession* client)); |
| 107 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); | 107 MOCK_METHOD1(OnSessionAuthenticationFailed, void(ClientSession* client)); |
| 108 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); | 108 MOCK_METHOD1(OnSessionClosed, void(ClientSession* client)); |
| 109 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, | 109 MOCK_METHOD2(OnSessionSequenceNumber, void(ClientSession* client, |
| 110 int64 sequence_number)); | 110 int64 sequence_number)); |
| 111 MOCK_METHOD3(OnSessionRouteChange, void( | 111 MOCK_METHOD3(OnSessionRouteChange, void( |
| 112 ClientSession* client, | 112 ClientSession* client, |
| 113 const std::string& channel_name, | 113 const std::string& channel_name, |
| 114 const protocol::TransportRoute& route)); | 114 const protocol::TransportRoute& route)); |
| 115 MOCK_METHOD2(OnClientDimensionsChanged, void(ClientSession* client, |
| 116 const SkISize& size)); |
| 115 | 117 |
| 116 private: | 118 private: |
| 117 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); | 119 DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler); |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 class MockEventExecutor : public EventExecutor { | 122 class MockEventExecutor : public EventExecutor { |
| 121 public: | 123 public: |
| 122 MockEventExecutor(); | 124 MockEventExecutor(); |
| 123 virtual ~MockEventExecutor(); | 125 virtual ~MockEventExecutor(); |
| 124 | 126 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 MOCK_METHOD2(Authenticate, bool(const std::string& username, | 164 MOCK_METHOD2(Authenticate, bool(const std::string& username, |
| 163 const std::string& password)); | 165 const std::string& password)); |
| 164 | 166 |
| 165 private: | 167 private: |
| 166 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); | 168 DISALLOW_COPY_AND_ASSIGN(MockUserAuthenticator); |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 } // namespace remoting | 171 } // namespace remoting |
| 170 | 172 |
| 171 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ | 173 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ |
| OLD | NEW |