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

Side by Side Diff: remoting/protocol/fake_session.cc

Issue 8619011: Use Authenticator interface in Session and SessionManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittests Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/jingle_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "remoting/protocol/fake_session.h" 5 #include "remoting/protocol/fake_session.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "net/base/io_buffer.h" 8 #include "net/base/io_buffer.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 254 }
255 255
256 const SessionConfig& FakeSession::config() { 256 const SessionConfig& FakeSession::config() {
257 return config_; 257 return config_;
258 } 258 }
259 259
260 void FakeSession::set_config(const SessionConfig& config) { 260 void FakeSession::set_config(const SessionConfig& config) {
261 config_ = config; 261 config_ = config;
262 } 262 }
263 263
264 const std::string& FakeSession::initiator_token() {
265 return initiator_token_;
266 }
267
268 void FakeSession::set_initiator_token(const std::string& initiator_token) {
269 initiator_token_ = initiator_token;
270 }
271
272 const std::string& FakeSession::receiver_token() {
273 return receiver_token_;
274 }
275
276 void FakeSession::set_receiver_token(const std::string& receiver_token) {
277 receiver_token_ = receiver_token;
278 }
279
280 void FakeSession::set_shared_secret(const std::string& shared_secret) {
281 shared_secret_ = shared_secret;
282 }
283
284 const std::string& FakeSession::shared_secret() {
285 return shared_secret_;
286 }
287
288 void FakeSession::Close() { 264 void FakeSession::Close() {
289 closed_ = true; 265 closed_ = true;
290 } 266 }
291 267
292 } // namespace protocol 268 } // namespace protocol
293 } // namespace remoting 269 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/jingle_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698