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