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

Unified Diff: remoting/protocol/negotiating_authenticator_unittest.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
Index: remoting/protocol/negotiating_authenticator_unittest.cc
diff --git a/remoting/protocol/negotiating_authenticator_unittest.cc b/remoting/protocol/negotiating_authenticator_unittest.cc
index 0161e65ed8c6ffa8cf659e3d0e8443d13f77ea00..534eeccf87311d787b18cfeab95a01fcfd60992f 100644
--- a/remoting/protocol/negotiating_authenticator_unittest.cc
+++ b/remoting/protocol/negotiating_authenticator_unittest.cc
@@ -65,14 +65,17 @@ class NegotiatingAuthenticatorTest : public AuthenticatorTestBase {
host_cert_, key_pair_, host_secret_hash, pairing_registry_);
}
+
+ protocol::ClientAuthenticationConfig client_auth_config;
+ client_auth_config.host_id = kTestHostId;
+ client_auth_config.pairing_client_id = client_id;
+ client_auth_config.pairing_secret= client_paired_secret;
bool pairing_expected = pairing_registry_.get() != nullptr;
- FetchSecretCallback fetch_secret_callback =
+ client_auth_config.fetch_secret_callback =
base::Bind(&NegotiatingAuthenticatorTest::FetchSecret,
- client_interactive_pin,
- pairing_expected);
- client_as_negotiating_authenticator_ = new NegotiatingClientAuthenticator(
- client_id, client_paired_secret, kTestHostId, fetch_secret_callback,
- FetchThirdPartyTokenCallback());
+ client_interactive_pin, pairing_expected);
+ client_as_negotiating_authenticator_ =
+ new NegotiatingClientAuthenticator(client_auth_config);
client_.reset(client_as_negotiating_authenticator_);
}
« no previous file with comments | « remoting/protocol/negotiating_authenticator_base.h ('k') | remoting/protocol/negotiating_client_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698