| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 private: | 45 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient); | 46 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClient); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 class MockConnectionToClientEventHandler : | 49 class MockConnectionToClientEventHandler : |
| 50 public ConnectionToClient::EventHandler { | 50 public ConnectionToClient::EventHandler { |
| 51 public: | 51 public: |
| 52 MockConnectionToClientEventHandler(); | 52 MockConnectionToClientEventHandler(); |
| 53 virtual ~MockConnectionToClientEventHandler(); | 53 virtual ~MockConnectionToClientEventHandler(); |
| 54 | 54 |
| 55 MOCK_METHOD1(OnConnectionAuthenticating, |
| 56 void(ConnectionToClient* connection)); |
| 55 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); | 57 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); |
| 56 MOCK_METHOD1(OnConnectionChannelsConnected, | 58 MOCK_METHOD1(OnConnectionChannelsConnected, |
| 57 void(ConnectionToClient* connection)); | 59 void(ConnectionToClient* connection)); |
| 58 MOCK_METHOD2(OnConnectionClosed, void(ConnectionToClient* connection, | 60 MOCK_METHOD2(OnConnectionClosed, void(ConnectionToClient* connection, |
| 59 ErrorCode error)); | 61 ErrorCode error)); |
| 60 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, | 62 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, |
| 61 int64 sequence_number)); | 63 int64 sequence_number)); |
| 62 MOCK_METHOD3(OnRouteChange, void(ConnectionToClient* connection, | 64 MOCK_METHOD3(OnRouteChange, void(ConnectionToClient* connection, |
| 63 const std::string& channel_name, | 65 const std::string& channel_name, |
| 64 const TransportRoute& route)); | 66 const TransportRoute& route)); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 virtual void PostTask( | 243 virtual void PostTask( |
| 242 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 244 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 243 const tracked_objects::Location& from_here, | 245 const tracked_objects::Location& from_here, |
| 244 const base::Closure& task) OVERRIDE; | 246 const base::Closure& task) OVERRIDE; |
| 245 }; | 247 }; |
| 246 | 248 |
| 247 } // namespace protocol | 249 } // namespace protocol |
| 248 } // namespace remoting | 250 } // namespace remoting |
| 249 | 251 |
| 250 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 252 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |