Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: remoting/protocol/protocol_mock_objects.h

Issue 2413553003: Add InputEventTimestampSource interface. (Closed)
Patch Set: msvc compilation Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/protocol/input_event_timestamps.cc ('k') | remoting/protocol/video_frame_pump.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/input_event_timestamps.cc ('k') | remoting/protocol/video_frame_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698