Index: remoting/protocol/negotiating_authenticator_unittest.cc |
diff --git a/remoting/protocol/negotiating_authenticator_unittest.cc b/remoting/protocol/negotiating_authenticator_unittest.cc |
index 1a6e93f41c537e26e582c1789acbc859201ef5af..e33b7d67e3bc52d35a257fdfa9de61ac6404e6bc 100644 |
--- a/remoting/protocol/negotiating_authenticator_unittest.cc |
+++ b/remoting/protocol/negotiating_authenticator_unittest.cc |
@@ -49,8 +49,8 @@ class NegotiatingAuthenticatorTest : public AuthenticatorTestBase { |
bool client_hmac_only) { |
std::string host_secret_hash = AuthenticationMethod::ApplyHashFunction( |
hash_function, kTestHostId, host_secret); |
- host_.reset(new NegotiatingHostAuthenticator( |
- host_cert_, key_pair_, host_secret_hash, hash_function)); |
+ host_ = NegotiatingHostAuthenticator::CreateWithSharedSecret( |
+ host_cert_, key_pair_, host_secret_hash, hash_function); |
std::vector<AuthenticationMethod> methods; |
methods.push_back(AuthenticationMethod::Spake2( |