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 "remoting/protocol/ssl_hmac_channel_authenticator.h" | 5 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/macros.h" |
11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
12 #include "base/test/test_timeouts.h" | 13 #include "base/test/test_timeouts.h" |
13 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
14 #include "crypto/rsa_private_key.h" | 15 #include "crypto/rsa_private_key.h" |
15 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
16 #include "net/base/test_data_directory.h" | 17 #include "net/base/test_data_directory.h" |
17 #include "net/test/cert_test_util.h" | 18 #include "net/test/cert_test_util.h" |
18 #include "remoting/base/rsa_key_pair.h" | 19 #include "remoting/base/rsa_key_pair.h" |
19 #include "remoting/protocol/connection_tester.h" | 20 #include "remoting/protocol/connection_tester.h" |
20 #include "remoting/protocol/fake_session.h" | 21 #include "remoting/protocol/fake_session.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 host_auth_ = SslHmacChannelAuthenticator::CreateForHost( | 194 host_auth_ = SslHmacChannelAuthenticator::CreateForHost( |
194 host_cert_, key_pair_, kTestSharedSecret); | 195 host_cert_, key_pair_, kTestSharedSecret); |
195 | 196 |
196 RunChannelAuth(net::ERR_CERT_INVALID, net::ERR_CONNECTION_CLOSED); | 197 RunChannelAuth(net::ERR_CERT_INVALID, net::ERR_CONNECTION_CLOSED); |
197 | 198 |
198 ASSERT_TRUE(host_socket_.get() == nullptr); | 199 ASSERT_TRUE(host_socket_.get() == nullptr); |
199 } | 200 } |
200 | 201 |
201 } // namespace protocol | 202 } // namespace protocol |
202 } // namespace remoting | 203 } // namespace remoting |
OLD | NEW |