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 "base/macros.h" | 6 #include "base/macros.h" |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "remoting/base/rsa_key_pair.h" | 10 #include "remoting/base/rsa_key_pair.h" |
11 #include "remoting/protocol/auth_util.h" | 11 #include "remoting/protocol/auth_util.h" |
12 #include "remoting/protocol/authenticator_test_base.h" | 12 #include "remoting/protocol/authenticator_test_base.h" |
13 #include "remoting/protocol/channel_authenticator.h" | 13 #include "remoting/protocol/channel_authenticator.h" |
14 #include "remoting/protocol/connection_tester.h" | 14 #include "remoting/protocol/connection_tester.h" |
15 #include "remoting/protocol/negotiating_authenticator_base.h" | 15 #include "remoting/protocol/negotiating_authenticator_base.h" |
16 #include "remoting/protocol/negotiating_client_authenticator.h" | 16 #include "remoting/protocol/negotiating_client_authenticator.h" |
17 #include "remoting/protocol/negotiating_host_authenticator.h" | 17 #include "remoting/protocol/negotiating_host_authenticator.h" |
18 #include "remoting/protocol/pairing_registry.h" | 18 #include "remoting/protocol/pairing_registry.h" |
19 #include "remoting/protocol/protocol_mock_objects.h" | 19 #include "remoting/protocol/protocol_mock_objects.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 22 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
23 | 23 |
24 using testing::_; | 24 using testing::_; |
25 using testing::DeleteArg; | 25 using testing::DeleteArg; |
26 using testing::SaveArg; | 26 using testing::SaveArg; |
27 | 27 |
28 namespace remoting { | 28 namespace remoting { |
29 namespace protocol { | 29 namespace protocol { |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 TEST_P(NegotiatingPairingAuthenticatorTest, PairingFailedInvalidSecretAndPin) { | 310 TEST_P(NegotiatingPairingAuthenticatorTest, PairingFailedInvalidSecretAndPin) { |
311 CreatePairingRegistry(true); | 311 CreatePairingRegistry(true); |
312 ASSERT_NO_FATAL_FAILURE(InitAuthenticators( | 312 ASSERT_NO_FATAL_FAILURE(InitAuthenticators( |
313 kTestClientId, kTestPairedSecretBad, kTestPinBad, kTestPin)); | 313 kTestClientId, kTestPairedSecretBad, kTestPinBad, kTestPin)); |
314 ASSERT_NO_FATAL_FAILURE(RunAuthExchange()); | 314 ASSERT_NO_FATAL_FAILURE(RunAuthExchange()); |
315 VerifyRejected(Authenticator::INVALID_CREDENTIALS); | 315 VerifyRejected(Authenticator::INVALID_CREDENTIALS); |
316 } | 316 } |
317 | 317 |
318 } // namespace protocol | 318 } // namespace protocol |
319 } // namespace remoting | 319 } // namespace remoting |
OLD | NEW |