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 "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
7 #include "remoting/base/rsa_key_pair.h" | 8 #include "remoting/base/rsa_key_pair.h" |
8 #include "remoting/protocol/authenticator_test_base.h" | 9 #include "remoting/protocol/authenticator_test_base.h" |
9 #include "remoting/protocol/channel_authenticator.h" | 10 #include "remoting/protocol/channel_authenticator.h" |
10 #include "remoting/protocol/connection_tester.h" | 11 #include "remoting/protocol/connection_tester.h" |
11 #include "remoting/protocol/negotiating_authenticator_base.h" | 12 #include "remoting/protocol/negotiating_authenticator_base.h" |
12 #include "remoting/protocol/negotiating_client_authenticator.h" | 13 #include "remoting/protocol/negotiating_client_authenticator.h" |
13 #include "remoting/protocol/negotiating_host_authenticator.h" | 14 #include "remoting/protocol/negotiating_host_authenticator.h" |
14 #include "remoting/protocol/pairing_registry.h" | 15 #include "remoting/protocol/pairing_registry.h" |
15 #include "remoting/protocol/protocol_mock_objects.h" | 16 #include "remoting/protocol/protocol_mock_objects.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 CreatePairingRegistry(true); | 247 CreatePairingRegistry(true); |
247 ASSERT_NO_FATAL_FAILURE(InitAuthenticators( | 248 ASSERT_NO_FATAL_FAILURE(InitAuthenticators( |
248 kTestClientId, kTestPairedSecretBad, kTestPinBad, kTestPin, | 249 kTestClientId, kTestPairedSecretBad, kTestPinBad, kTestPin, |
249 AuthenticationMethod::HMAC_SHA256, false)); | 250 AuthenticationMethod::HMAC_SHA256, false)); |
250 ASSERT_NO_FATAL_FAILURE(RunAuthExchange()); | 251 ASSERT_NO_FATAL_FAILURE(RunAuthExchange()); |
251 VerifyRejected(Authenticator::INVALID_CREDENTIALS); | 252 VerifyRejected(Authenticator::INVALID_CREDENTIALS); |
252 } | 253 } |
253 | 254 |
254 } // namespace protocol | 255 } // namespace protocol |
255 } // namespace remoting | 256 } // namespace remoting |
OLD | NEW |