| Index: remoting/protocol/jingle_session_unittest.cc
|
| diff --git a/remoting/protocol/jingle_session_unittest.cc b/remoting/protocol/jingle_session_unittest.cc
|
| index 441e19b584fec7a697b99e6111284ea67886724d..2dab493ea80239038810700534b83cb0032dbe79 100644
|
| --- a/remoting/protocol/jingle_session_unittest.cc
|
| +++ b/remoting/protocol/jingle_session_unittest.cc
|
| @@ -206,14 +206,14 @@ class JingleSessionTest : public testing::Test {
|
| }
|
| }
|
|
|
| - Authenticator* authenticator = new FakeAuthenticator(
|
| - FakeAuthenticator::CLIENT, auth_round_trips, auth_action, true);
|
| + scoped_ptr<Authenticator> authenticator(new FakeAuthenticator(
|
| + FakeAuthenticator::CLIENT, auth_round_trips, auth_action, true));
|
|
|
| - client_session_.reset(client_server_->Connect(
|
| - kHostJid, authenticator,
|
| + client_session_ = client_server_->Connect(
|
| + kHostJid, authenticator.Pass(),
|
| CandidateSessionConfig::CreateDefault(),
|
| base::Bind(&MockSessionCallback::OnStateChange,
|
| - base::Unretained(&client_connection_callback_))));
|
| + base::Unretained(&client_connection_callback_)));
|
|
|
| message_loop_.RunAllPending();
|
|
|
| @@ -308,13 +308,12 @@ TEST_F(JingleSessionTest, RejectConnection) {
|
| .Times(1);
|
| }
|
|
|
| - Authenticator* authenticator = new FakeAuthenticator(
|
| - FakeAuthenticator::CLIENT, 1, FakeAuthenticator::ACCEPT, true);
|
| - client_session_.reset(client_server_->Connect(
|
| - kHostJid, authenticator,
|
| - CandidateSessionConfig::CreateDefault(),
|
| + scoped_ptr<Authenticator> authenticator(new FakeAuthenticator(
|
| + FakeAuthenticator::CLIENT, 1, FakeAuthenticator::ACCEPT, true));
|
| + client_session_ = client_server_->Connect(
|
| + kHostJid, authenticator.Pass(), CandidateSessionConfig::CreateDefault(),
|
| base::Bind(&MockSessionCallback::OnStateChange,
|
| - base::Unretained(&client_connection_callback_))));
|
| + base::Unretained(&client_connection_callback_)));
|
|
|
| message_loop_.RunAllPending();
|
| }
|
|
|