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

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

Issue 1852033002: Fix WebRTC transport to use single offer-answer exchange instead of two. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_cast
Patch Set: Created 4 years, 8 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 25 matching lines...) Expand all
36 36
37 class MockConnectionToClientEventHandler 37 class MockConnectionToClientEventHandler
38 : public ConnectionToClient::EventHandler { 38 : public ConnectionToClient::EventHandler {
39 public: 39 public:
40 MockConnectionToClientEventHandler(); 40 MockConnectionToClientEventHandler();
41 ~MockConnectionToClientEventHandler() override; 41 ~MockConnectionToClientEventHandler() override;
42 42
43 MOCK_METHOD1(OnConnectionAuthenticating, 43 MOCK_METHOD1(OnConnectionAuthenticating,
44 void(ConnectionToClient* connection)); 44 void(ConnectionToClient* connection));
45 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); 45 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection));
46 MOCK_METHOD1(CreateVideoStreams, void(ConnectionToClient* connection));
46 MOCK_METHOD1(OnConnectionChannelsConnected, 47 MOCK_METHOD1(OnConnectionChannelsConnected,
47 void(ConnectionToClient* connection)); 48 void(ConnectionToClient* connection));
48 MOCK_METHOD2(OnConnectionClosed, 49 MOCK_METHOD2(OnConnectionClosed,
49 void(ConnectionToClient* connection, ErrorCode error)); 50 void(ConnectionToClient* connection, ErrorCode error));
50 MOCK_METHOD1(OnCreateVideoEncoder, 51 MOCK_METHOD1(OnCreateVideoEncoder,
51 void(std::unique_ptr<VideoEncoder>* encoder)); 52 void(std::unique_ptr<VideoEncoder>* encoder));
52 MOCK_METHOD2(OnInputEventReceived, 53 MOCK_METHOD2(OnInputEventReceived,
53 void(ConnectionToClient* connection, int64_t timestamp)); 54 void(ConnectionToClient* connection, int64_t timestamp));
54 MOCK_METHOD3(OnRouteChange, 55 MOCK_METHOD3(OnRouteChange,
55 void(ConnectionToClient* connection, 56 void(ConnectionToClient* connection,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Runs tasks synchronously instead of posting them to |task_runner|. 238 // Runs tasks synchronously instead of posting them to |task_runner|.
238 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 239 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
239 const tracked_objects::Location& from_here, 240 const tracked_objects::Location& from_here,
240 const base::Closure& task) override; 241 const base::Closure& task) override;
241 }; 242 };
242 243
243 } // namespace protocol 244 } // namespace protocol
244 } // namespace remoting 245 } // namespace remoting
245 246
246 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 247 #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