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 <cstdint> | 8 #include <cstdint> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 class MockConnectionToClientEventHandler | 67 class MockConnectionToClientEventHandler |
68 : public ConnectionToClient::EventHandler { | 68 : public ConnectionToClient::EventHandler { |
69 public: | 69 public: |
70 MockConnectionToClientEventHandler(); | 70 MockConnectionToClientEventHandler(); |
71 ~MockConnectionToClientEventHandler() override; | 71 ~MockConnectionToClientEventHandler() override; |
72 | 72 |
73 MOCK_METHOD1(OnConnectionAuthenticating, | 73 MOCK_METHOD1(OnConnectionAuthenticating, |
74 void(ConnectionToClient* connection)); | 74 void(ConnectionToClient* connection)); |
75 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); | 75 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); |
76 MOCK_METHOD1(CreateVideoStreams, void(ConnectionToClient* connection)); | 76 MOCK_METHOD1(CreateMediaStreams, void(ConnectionToClient* connection)); |
77 MOCK_METHOD1(OnConnectionChannelsConnected, | 77 MOCK_METHOD1(OnConnectionChannelsConnected, |
78 void(ConnectionToClient* connection)); | 78 void(ConnectionToClient* connection)); |
79 MOCK_METHOD2(OnConnectionClosed, | 79 MOCK_METHOD2(OnConnectionClosed, |
80 void(ConnectionToClient* connection, ErrorCode error)); | 80 void(ConnectionToClient* connection, ErrorCode error)); |
81 MOCK_METHOD1(OnCreateVideoEncoder, | 81 MOCK_METHOD1(OnCreateVideoEncoder, |
82 void(std::unique_ptr<VideoEncoder>* encoder)); | 82 void(std::unique_ptr<VideoEncoder>* encoder)); |
83 MOCK_METHOD2(OnInputEventReceived, | 83 MOCK_METHOD2(OnInputEventReceived, |
84 void(ConnectionToClient* connection, int64_t timestamp)); | 84 void(ConnectionToClient* connection, int64_t timestamp)); |
85 MOCK_METHOD3(OnRouteChange, | 85 MOCK_METHOD3(OnRouteChange, |
86 void(ConnectionToClient* connection, | 86 void(ConnectionToClient* connection, |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // Runs tasks synchronously instead of posting them to |task_runner|. | 268 // Runs tasks synchronously instead of posting them to |task_runner|. |
269 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 269 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
270 const tracked_objects::Location& from_here, | 270 const tracked_objects::Location& from_here, |
271 const base::Closure& task) override; | 271 const base::Closure& task) override; |
272 }; | 272 }; |
273 | 273 |
274 } // namespace protocol | 274 } // namespace protocol |
275 } // namespace remoting | 275 } // namespace remoting |
276 | 276 |
277 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 277 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |