diff options
Diffstat (limited to 'remoting/protocol/fake_session.cc')
-rw-r--r-- | remoting/protocol/fake_session.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/remoting/protocol/fake_session.cc b/remoting/protocol/fake_session.cc index 822cfea..2445d0c 100644 --- a/remoting/protocol/fake_session.cc +++ b/remoting/protocol/fake_session.cc @@ -203,7 +203,7 @@ bool FakeUdpSocket::SetSendBufferSize(int32 size) { FakeSession::FakeSession() : candidate_config_(CandidateSessionConfig::CreateDefault()), - config_(SessionConfig::CreateDefault()), + config_(SessionConfig::GetDefault()), message_loop_(NULL), jid_(kTestJid) { } @@ -252,13 +252,12 @@ const CandidateSessionConfig* FakeSession::candidate_config() { return candidate_config_.get(); } -const SessionConfig* FakeSession::config() { - CHECK(config_.get()); - return config_.get(); +const SessionConfig& FakeSession::config() { + return config_; } -void FakeSession::set_config(const SessionConfig* config) { - config_.reset(config); +void FakeSession::set_config(const SessionConfig& config) { + config_ = config; } const std::string& FakeSession::initiator_token() { |