| OLD | NEW |
| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 } | 274 } |
| 275 | 275 |
| 276 void FakeSession::set_receiver_token(const std::string& receiver_token) { | 276 void FakeSession::set_receiver_token(const std::string& receiver_token) { |
| 277 receiver_token_ = receiver_token; | 277 receiver_token_ = receiver_token; |
| 278 } | 278 } |
| 279 | 279 |
| 280 void FakeSession::set_shared_secret(const std::string& shared_secret) { | 280 void FakeSession::set_shared_secret(const std::string& shared_secret) { |
| 281 shared_secret_ = shared_secret; | 281 shared_secret_ = shared_secret; |
| 282 } | 282 } |
| 283 | 283 |
| 284 const std::string& FakeSession::shared_secret() { | |
| 285 return shared_secret_; | |
| 286 } | |
| 287 | |
| 288 void FakeSession::Close() { | 284 void FakeSession::Close() { |
| 289 closed_ = true; | 285 closed_ = true; |
| 290 } | 286 } |
| 291 | 287 |
| 292 } // namespace protocol | 288 } // namespace protocol |
| 293 } // namespace remoting | 289 } // namespace remoting |
| OLD | NEW |