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

Unified Diff: remoting/protocol/fake_session.cc

Issue 2808283002: Improve tests for Mixed-Case JIDs. (Closed)
Patch Set: . Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/fake_session.cc
diff --git a/remoting/protocol/fake_session.cc b/remoting/protocol/fake_session.cc
index 5c6d1806feaf2c701a932a80c85fd4d100a8b255..b2076b0e5e8705b64506bd985645f87b306d5997 100644
--- a/remoting/protocol/fake_session.cc
+++ b/remoting/protocol/fake_session.cc
@@ -34,16 +34,14 @@ void FakeSession::SimulateConnection(FakeSession* peer) {
peer->event_handler_->OnSessionStateChange(AUTHENTICATING);
// Initialize transport and authenticator on the client.
- authenticator_.reset(new FakeAuthenticator(FakeAuthenticator::CLIENT, 0,
- FakeAuthenticator::ACCEPT, false));
+ authenticator_.reset(new FakeAuthenticator(FakeAuthenticator::ACCEPT));
authenticator_->set_auth_key(kTestAuthKey);
transport_->Start(authenticator_.get(),
base::Bind(&FakeSession::SendTransportInfo,
weak_factory_.GetWeakPtr()));
// Initialize transport and authenticator on the host.
- peer->authenticator_.reset(new FakeAuthenticator(
- FakeAuthenticator::HOST, 0, FakeAuthenticator::ACCEPT, false));
+ peer->authenticator_.reset(new FakeAuthenticator(FakeAuthenticator::ACCEPT));
peer->authenticator_->set_auth_key(kTestAuthKey);
peer->transport_->Start(peer->authenticator_.get(),
base::Bind(&FakeSession::SendTransportInfo, peer_));

Powered by Google App Engine
This is Rietveld 408576698