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