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

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

Issue 2254673002: Remove dependency on AudioStub in ConnectionToClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 3 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
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/ice_connection_to_client.cc ('k') | remoting/protocol/webrtc_connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698