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

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

Issue 570463002: Revert of Move PseudoTCP and channel auth out of LibjingleTransportFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_dgrams
Patch Set: Created 6 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); 160 DISALLOW_COPY_AND_ASSIGN(MockVideoStub);
161 }; 161 };
162 162
163 class MockSession : public Session { 163 class MockSession : public Session {
164 public: 164 public:
165 MockSession(); 165 MockSession();
166 virtual ~MockSession(); 166 virtual ~MockSession();
167 167
168 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler)); 168 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler));
169 MOCK_METHOD0(error, ErrorCode()); 169 MOCK_METHOD0(error, ErrorCode());
170 MOCK_METHOD0(GetTransportChannelFactory, StreamChannelFactory*()); 170 MOCK_METHOD0(GetTransportChannelFactory, ChannelFactory*());
171 MOCK_METHOD0(GetMultiplexedChannelFactory, StreamChannelFactory*()); 171 MOCK_METHOD0(GetMultiplexedChannelFactory, ChannelFactory*());
172 MOCK_METHOD0(jid, const std::string&()); 172 MOCK_METHOD0(jid, const std::string&());
173 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); 173 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*());
174 MOCK_METHOD0(config, const SessionConfig&()); 174 MOCK_METHOD0(config, const SessionConfig&());
175 MOCK_METHOD1(set_config, void(const SessionConfig& config)); 175 MOCK_METHOD1(set_config, void(const SessionConfig& config));
176 MOCK_METHOD0(initiator_token, const std::string&()); 176 MOCK_METHOD0(initiator_token, const std::string&());
177 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); 177 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token));
178 MOCK_METHOD0(receiver_token, const std::string&()); 178 MOCK_METHOD0(receiver_token, const std::string&());
179 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); 179 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token));
180 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); 180 MOCK_METHOD1(set_shared_secret, void(const std::string& secret));
181 MOCK_METHOD0(shared_secret, const std::string&()); 181 MOCK_METHOD0(shared_secret, const std::string&());
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 virtual void PostTask( 244 virtual void PostTask(
245 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 245 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
246 const tracked_objects::Location& from_here, 246 const tracked_objects::Location& from_here,
247 const base::Closure& task) OVERRIDE; 247 const base::Closure& task) OVERRIDE;
248 }; 248 };
249 249
250 } // namespace protocol 250 } // namespace protocol
251 } // namespace remoting 251 } // namespace remoting
252 252
253 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 253 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/pseudotcp_channel_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698