Index: remoting/protocol/v2_authenticator_unittest.cc |
diff --git a/remoting/protocol/v2_authenticator_unittest.cc b/remoting/protocol/v2_authenticator_unittest.cc |
index dc95318c81300bee298218740f463233b6c86e03..2b0d5f241da8c4840397986b5610240dae2db5ab 100644 |
--- a/remoting/protocol/v2_authenticator_unittest.cc |
+++ b/remoting/protocol/v2_authenticator_unittest.cc |
@@ -9,6 +9,7 @@ |
#include "remoting/protocol/authenticator_test_base.h" |
#include "remoting/protocol/channel_authenticator.h" |
#include "remoting/protocol/connection_tester.h" |
+#include "remoting/protocol/key_pair.h" |
#include "testing/gmock/include/gmock/gmock.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
@@ -41,7 +42,8 @@ class V2AuthenticatorTest : public AuthenticatorTestBase { |
void InitAuthenticators(const std::string& client_secret, |
const std::string& host_secret) { |
host_ = V2Authenticator::CreateForHost( |
- host_cert_, *private_key_, host_secret, Authenticator::WAITING_MESSAGE); |
+ host_cert_, key_pair_->Copy(), host_secret, |
+ Authenticator::WAITING_MESSAGE); |
client_ = V2Authenticator::CreateForClient( |
client_secret, Authenticator::MESSAGE_READY); |
} |