| 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 25 matching lines...) Expand all Loading... |
| 36 MockConnectionToClientEventHandler(); | 36 MockConnectionToClientEventHandler(); |
| 37 ~MockConnectionToClientEventHandler() override; | 37 ~MockConnectionToClientEventHandler() override; |
| 38 | 38 |
| 39 MOCK_METHOD1(OnConnectionAuthenticating, | 39 MOCK_METHOD1(OnConnectionAuthenticating, |
| 40 void(ConnectionToClient* connection)); | 40 void(ConnectionToClient* connection)); |
| 41 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); | 41 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); |
| 42 MOCK_METHOD1(OnConnectionChannelsConnected, | 42 MOCK_METHOD1(OnConnectionChannelsConnected, |
| 43 void(ConnectionToClient* connection)); | 43 void(ConnectionToClient* connection)); |
| 44 MOCK_METHOD2(OnConnectionClosed, | 44 MOCK_METHOD2(OnConnectionClosed, |
| 45 void(ConnectionToClient* connection, ErrorCode error)); | 45 void(ConnectionToClient* connection, ErrorCode error)); |
| 46 MOCK_METHOD1(OnCreateVideoEncoder, void(scoped_ptr<VideoEncoder>* encoder)); |
| 46 MOCK_METHOD2(OnInputEventReceived, | 47 MOCK_METHOD2(OnInputEventReceived, |
| 47 void(ConnectionToClient* connection, int64_t timestamp)); | 48 void(ConnectionToClient* connection, int64_t timestamp)); |
| 48 MOCK_METHOD3(OnRouteChange, | 49 MOCK_METHOD3(OnRouteChange, |
| 49 void(ConnectionToClient* connection, | 50 void(ConnectionToClient* connection, |
| 50 const std::string& channel_name, | 51 const std::string& channel_name, |
| 51 const TransportRoute& route)); | 52 const TransportRoute& route)); |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); | 55 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); |
| 55 }; | 56 }; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // Runs tasks synchronously instead of posting them to |task_runner|. | 239 // Runs tasks synchronously instead of posting them to |task_runner|. |
| 239 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 240 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 240 const tracked_objects::Location& from_here, | 241 const tracked_objects::Location& from_here, |
| 241 const base::Closure& task) override; | 242 const base::Closure& task) override; |
| 242 }; | 243 }; |
| 243 | 244 |
| 244 } // namespace protocol | 245 } // namespace protocol |
| 245 } // namespace remoting | 246 } // namespace remoting |
| 246 | 247 |
| 247 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 248 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
| OLD | NEW |