| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <utility> |
| 6 |
| 5 #include "base/bind.h" | 7 #include "base/bind.h" |
| 6 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 7 #include "base/macros.h" | 9 #include "base/macros.h" |
| 8 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| 9 #include "remoting/base/rsa_key_pair.h" | 11 #include "remoting/base/rsa_key_pair.h" |
| 10 #include "remoting/protocol/authenticator_test_base.h" | 12 #include "remoting/protocol/authenticator_test_base.h" |
| 11 #include "remoting/protocol/channel_authenticator.h" | 13 #include "remoting/protocol/channel_authenticator.h" |
| 12 #include "remoting/protocol/connection_tester.h" | 14 #include "remoting/protocol/connection_tester.h" |
| 13 #include "remoting/protocol/fake_authenticator.h" | 15 #include "remoting/protocol/fake_authenticator.h" |
| 14 #include "remoting/protocol/third_party_authenticator_base.h" | 16 #include "remoting/protocol/third_party_authenticator_base.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 ASSERT_EQ(Authenticator::PROCESSING_MESSAGE, host_->state()); | 205 ASSERT_EQ(Authenticator::PROCESSING_MESSAGE, host_->state()); |
| 204 ASSERT_NO_FATAL_FAILURE( | 206 ASSERT_NO_FATAL_FAILURE( |
| 205 token_validator_->OnTokenValidated(kSharedSecret)); | 207 token_validator_->OnTokenValidated(kSharedSecret)); |
| 206 | 208 |
| 207 // The end result is that the host rejected the fake authentication. | 209 // The end result is that the host rejected the fake authentication. |
| 208 ASSERT_EQ(Authenticator::REJECTED, client_->state()); | 210 ASSERT_EQ(Authenticator::REJECTED, client_->state()); |
| 209 } | 211 } |
| 210 | 212 |
| 211 } // namespace protocol | 213 } // namespace protocol |
| 212 } // namespace remoting | 214 } // namespace remoting |
| OLD | NEW |