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

Unified Diff: remoting/protocol/authenticator_test_base.cc

Issue 12326090: Third Party authentication protocol. (Closed) Base URL: http://git.chromium.org/chromium/src.git@host_key_pair
Patch Set: Reviewer comments Created 7 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/authenticator_test_base.cc
diff --git a/remoting/protocol/authenticator_test_base.cc b/remoting/protocol/authenticator_test_base.cc
index 5e2dac246de0d6de8080a942e219ab22950fd609..a8391045b16f9c3c9000780517a1240ba25edfa2 100644
--- a/remoting/protocol/authenticator_test_base.cc
+++ b/remoting/protocol/authenticator_test_base.cc
@@ -56,12 +56,17 @@ void AuthenticatorTestBase::SetUp() {
ASSERT_TRUE(base::Base64Encode(key_string, &key_base64));
key_pair_ = RsaKeyPair::FromString(key_base64);
ASSERT_TRUE(key_pair_);
+ host_public_key_ = key_pair_->GetPublicKey();
}
void AuthenticatorTestBase::RunAuthExchange() {
ContinueAuthExchangeWith(client_.get(), host_.get());
}
+void AuthenticatorTestBase::RunHostInitiatedAuthExchange() {
+ ContinueAuthExchangeWith(host_.get(), client_.get());
+}
+
// static
void AuthenticatorTestBase::ContinueAuthExchangeWith(Authenticator* sender,
Authenticator* receiver) {

Powered by Google App Engine
This is Rietveld 408576698