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

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

Issue 1413813006: Revert of Add TransportSession interface to prepare for WebRTC-based transport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/libjingle_transport_factory.cc ('k') | remoting/protocol/session.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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); 195 DISALLOW_COPY_AND_ASSIGN(MockVideoStub);
196 }; 196 };
197 197
198 class MockSession : public Session { 198 class MockSession : public Session {
199 public: 199 public:
200 MockSession(); 200 MockSession();
201 ~MockSession() override; 201 ~MockSession() override;
202 202
203 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler)); 203 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler));
204 MOCK_METHOD0(error, ErrorCode()); 204 MOCK_METHOD0(error, ErrorCode());
205 MOCK_METHOD0(GetTransportSession, TransportSession*()); 205 MOCK_METHOD0(GetTransportChannelFactory, StreamChannelFactory*());
206 MOCK_METHOD0(GetMultiplexedChannelFactory, StreamChannelFactory*());
206 MOCK_METHOD0(GetQuicChannelFactory, StreamChannelFactory*()); 207 MOCK_METHOD0(GetQuicChannelFactory, StreamChannelFactory*());
207 MOCK_METHOD0(jid, const std::string&()); 208 MOCK_METHOD0(jid, const std::string&());
208 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); 209 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*());
209 MOCK_METHOD0(config, const SessionConfig&()); 210 MOCK_METHOD0(config, const SessionConfig&());
210 MOCK_METHOD0(initiator_token, const std::string&()); 211 MOCK_METHOD0(initiator_token, const std::string&());
211 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); 212 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token));
212 MOCK_METHOD0(receiver_token, const std::string&()); 213 MOCK_METHOD0(receiver_token, const std::string&());
213 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); 214 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token));
214 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); 215 MOCK_METHOD1(set_shared_secret, void(const std::string& secret));
215 MOCK_METHOD0(shared_secret, const std::string&()); 216 MOCK_METHOD0(shared_secret, const std::string&());
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // Runs tasks synchronously instead of posting them to |task_runner|. 277 // Runs tasks synchronously instead of posting them to |task_runner|.
277 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 278 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
278 const tracked_objects::Location& from_here, 279 const tracked_objects::Location& from_here,
279 const base::Closure& task) override; 280 const base::Closure& task) override;
280 }; 281 };
281 282
282 } // namespace protocol 283 } // namespace protocol
283 } // namespace remoting 284 } // namespace remoting
284 285
285 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 286 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/libjingle_transport_factory.cc ('k') | remoting/protocol/session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698