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

Unified Diff: remoting/protocol/negotiating_authenticator_unittest.cc

Issue 1788943002: Revert of 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/client/plugin/chromoting_instance.cc ('k') | remoting/protocol/negotiating_client_authenticator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/negotiating_authenticator_unittest.cc
diff --git a/remoting/protocol/negotiating_authenticator_unittest.cc b/remoting/protocol/negotiating_authenticator_unittest.cc
index 534eeccf87311d787b18cfeab95a01fcfd60992f..0161e65ed8c6ffa8cf659e3d0e8443d13f77ea00 100644
--- a/remoting/protocol/negotiating_authenticator_unittest.cc
+++ b/remoting/protocol/negotiating_authenticator_unittest.cc
@@ -65,17 +65,14 @@
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;
- client_auth_config.fetch_secret_callback =
+ FetchSecretCallback fetch_secret_callback =
base::Bind(&NegotiatingAuthenticatorTest::FetchSecret,
- client_interactive_pin, pairing_expected);
- client_as_negotiating_authenticator_ =
- new NegotiatingClientAuthenticator(client_auth_config);
+ client_interactive_pin,
+ pairing_expected);
+ client_as_negotiating_authenticator_ = new NegotiatingClientAuthenticator(
+ client_id, client_paired_secret, kTestHostId, fetch_secret_callback,
+ FetchThirdPartyTokenCallback());
client_.reset(client_as_negotiating_authenticator_);
}
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/protocol/negotiating_client_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698