| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "net/base/net_errors.h" | 6 #include "net/base/net_errors.h" |
| 7 #include "remoting/base/rsa_key_pair.h" | 7 #include "remoting/base/rsa_key_pair.h" |
| 8 #include "remoting/protocol/authenticator_test_base.h" | 8 #include "remoting/protocol/authenticator_test_base.h" |
| 9 #include "remoting/protocol/channel_authenticator.h" | 9 #include "remoting/protocol/channel_authenticator.h" |
| 10 #include "remoting/protocol/connection_tester.h" | 10 #include "remoting/protocol/connection_tester.h" |
| 11 #include "remoting/protocol/negotiating_authenticator_base.h" | 11 #include "remoting/protocol/negotiating_authenticator_base.h" |
| 12 #include "remoting/protocol/negotiating_client_authenticator.h" | 12 #include "remoting/protocol/negotiating_client_authenticator.h" |
| 13 #include "remoting/protocol/negotiating_host_authenticator.h" | 13 #include "remoting/protocol/negotiating_host_authenticator.h" |
| 14 #include "remoting/protocol/pairing_registry.h" | 14 #include "remoting/protocol/pairing_registry.h" |
| 15 #include "remoting/protocol/protocol_mock_objects.h" | 15 #include "remoting/protocol/protocol_mock_objects.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 18 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
| 19 | 19 |
| 20 using testing::_; | 20 using testing::_; |
| 21 using testing::DeleteArg; | 21 using testing::DeleteArg; |
| 22 using testing::SaveArg; | 22 using testing::SaveArg; |
| 23 | 23 |
| 24 namespace remoting { | 24 namespace remoting { |
| 25 namespace protocol { | 25 namespace protocol { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 CreatePairingRegistry(true); | 248 CreatePairingRegistry(true); |
| 249 ASSERT_NO_FATAL_FAILURE(InitAuthenticators( | 249 ASSERT_NO_FATAL_FAILURE(InitAuthenticators( |
| 250 kTestClientId, kTestPairedSecretBad, kTestPinBad, kTestPin, | 250 kTestClientId, kTestPairedSecretBad, kTestPinBad, kTestPin, |
| 251 AuthenticationMethod::HMAC_SHA256, false)); | 251 AuthenticationMethod::HMAC_SHA256, false)); |
| 252 ASSERT_NO_FATAL_FAILURE(RunAuthExchange()); | 252 ASSERT_NO_FATAL_FAILURE(RunAuthExchange()); |
| 253 VerifyRejected(Authenticator::INVALID_CREDENTIALS); | 253 VerifyRejected(Authenticator::INVALID_CREDENTIALS); |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace protocol | 256 } // namespace protocol |
| 257 } // namespace remoting | 257 } // namespace remoting |
| OLD | NEW |