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

Unified Diff: remoting/protocol/negotiating_authenticator_unittest.cc

Issue 14793021: PairingAuthenticator implementation and plumbing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 92047d6688118c153b2899836ffb3a6257af77b0..cd1ef8ff5c1735df207c8d029452fc33af6aa975 100644
--- a/remoting/protocol/negotiating_authenticator_unittest.cc
+++ b/remoting/protocol/negotiating_authenticator_unittest.cc
@@ -50,7 +50,7 @@ class NegotiatingAuthenticatorTest : public AuthenticatorTestBase {
std::string host_secret_hash = AuthenticationMethod::ApplyHashFunction(
hash_function, kTestHostId, host_secret);
host_ = NegotiatingHostAuthenticator::CreateWithSharedSecret(
- host_cert_, key_pair_, host_secret_hash, hash_function);
+ host_cert_, key_pair_, host_secret_hash, hash_function, NULL);
std::vector<AuthenticationMethod> methods;
methods.push_back(AuthenticationMethod::Spake2(
@@ -60,6 +60,7 @@ class NegotiatingAuthenticatorTest : public AuthenticatorTestBase {
AuthenticationMethod::NONE));
}
client_.reset(new NegotiatingClientAuthenticator(
+ "", "",
kTestHostId, base::Bind(&NegotiatingAuthenticatorTest::FetchSecret,
client_secret),
scoped_ptr<ThirdPartyClientAuthenticator::TokenFetcher>(), methods));
@@ -70,6 +71,7 @@ class NegotiatingAuthenticatorTest : public AuthenticatorTestBase {
const protocol::SecretFetchedCallback& secret_fetched_callback) {
secret_fetched_callback.Run(client_secret);
}
+
void VerifyRejected(Authenticator::RejectionReason reason) {
ASSERT_TRUE((client_->state() == Authenticator::REJECTED &&
(client_->rejection_reason() == reason)) ||

Powered by Google App Engine
This is Rietveld 408576698