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

Unified Diff: remoting/test/protocol_perftest.cc

Issue 1778023002: Move NegotiatingClientAuthentication creation to ChromotingClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | remoting/test/test_chromoting_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/protocol_perftest.cc
diff --git a/remoting/test/protocol_perftest.cc b/remoting/test/protocol_perftest.cc
index cfbe3041e75d1128422edd38553a799baa6a59eb..d8a96432e2e7e1ff108ee5ee823bb99682f98c8a 100644
--- a/remoting/test/protocol_perftest.cc
+++ b/remoting/test/protocol_perftest.cc
@@ -388,17 +388,15 @@ class ProtocolPerfTest
host_signaling_.get(), std::move(port_allocator_factory), nullptr,
network_settings, protocol::TransportRole::CLIENT));
- scoped_ptr<protocol::Authenticator> client_authenticator(
- new protocol::NegotiatingClientAuthenticator(
- std::string(), // client_pairing_id
- std::string(), // client_pairing_secret
- kHostId,
- base::Bind(&ProtocolPerfTest::FetchPin, base::Unretained(this)),
- protocol::FetchThirdPartyTokenCallback()));
+ protocol::ClientAuthenticationConfig client_auth_config;
+ client_auth_config.host_id = kHostId;
+ client_auth_config.fetch_secret_callback =
+ base::Bind(&ProtocolPerfTest::FetchPin, base::Unretained(this));
+
client_.reset(
new ChromotingClient(client_context_.get(), this, this, nullptr));
client_->set_protocol_config(protocol_config_->Clone());
- client_->Start(client_signaling_.get(), std::move(client_authenticator),
+ client_->Start(client_signaling_.get(), client_auth_config,
transport_context, kHostJid, std::string());
}
« no previous file with comments | « remoting/protocol/negotiating_client_authenticator.cc ('k') | remoting/test/test_chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698