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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 MockConnectionToClientEventHandler(); | 70 MockConnectionToClientEventHandler(); |
71 ~MockConnectionToClientEventHandler() override; | 71 ~MockConnectionToClientEventHandler() override; |
72 | 72 |
73 MOCK_METHOD0(OnConnectionAuthenticating, void()); | 73 MOCK_METHOD0(OnConnectionAuthenticating, void()); |
74 MOCK_METHOD0(OnConnectionAuthenticated, void()); | 74 MOCK_METHOD0(OnConnectionAuthenticated, void()); |
75 MOCK_METHOD0(CreateMediaStreams, void()); | 75 MOCK_METHOD0(CreateMediaStreams, void()); |
76 MOCK_METHOD0(OnConnectionChannelsConnected, void()); | 76 MOCK_METHOD0(OnConnectionChannelsConnected, void()); |
77 MOCK_METHOD1(OnConnectionClosed, void(ErrorCode error)); | 77 MOCK_METHOD1(OnConnectionClosed, void(ErrorCode error)); |
78 MOCK_METHOD1(OnCreateVideoEncoder, | 78 MOCK_METHOD1(OnCreateVideoEncoder, |
79 void(std::unique_ptr<VideoEncoder>* encoder)); | 79 void(std::unique_ptr<VideoEncoder>* encoder)); |
80 MOCK_METHOD1(OnInputEventReceived, void(int64_t timestamp)); | |
81 MOCK_METHOD2(OnRouteChange, | 80 MOCK_METHOD2(OnRouteChange, |
82 void(const std::string& channel_name, | 81 void(const std::string& channel_name, |
83 const TransportRoute& route)); | 82 const TransportRoute& route)); |
84 | 83 |
85 private: | 84 private: |
86 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); | 85 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); |
87 }; | 86 }; |
88 | 87 |
89 class MockClipboardStub : public ClipboardStub { | 88 class MockClipboardStub : public ClipboardStub { |
90 public: | 89 public: |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // Runs tasks synchronously instead of posting them to |task_runner|. | 262 // Runs tasks synchronously instead of posting them to |task_runner|. |
264 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 263 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
265 const tracked_objects::Location& from_here, | 264 const tracked_objects::Location& from_here, |
266 const base::Closure& task) override; | 265 const base::Closure& task) override; |
267 }; | 266 }; |
268 | 267 |
269 } // namespace protocol | 268 } // namespace protocol |
270 } // namespace remoting | 269 } // namespace remoting |
271 | 270 |
272 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 271 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |