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) { |