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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/test/test_timeouts.h" | 15 #include "base/test/test_timeouts.h" |
16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
17 #include "crypto/rsa_private_key.h" | 17 #include "crypto/rsa_private_key.h" |
18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
19 #include "net/base/test_data_directory.h" | |
20 #include "net/test/cert_test_util.h" | 19 #include "net/test/cert_test_util.h" |
| 20 #include "net/test/test_data_directory.h" |
21 #include "remoting/base/rsa_key_pair.h" | 21 #include "remoting/base/rsa_key_pair.h" |
22 #include "remoting/protocol/connection_tester.h" | 22 #include "remoting/protocol/connection_tester.h" |
23 #include "remoting/protocol/fake_session.h" | 23 #include "remoting/protocol/fake_session.h" |
24 #include "remoting/protocol/p2p_stream_socket.h" | 24 #include "remoting/protocol/p2p_stream_socket.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 27 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
28 | 28 |
29 using testing::_; | 29 using testing::_; |
30 using testing::NotNull; | 30 using testing::NotNull; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 host_auth_ = SslHmacChannelAuthenticator::CreateForHost( | 196 host_auth_ = SslHmacChannelAuthenticator::CreateForHost( |
197 host_cert_, key_pair_, kTestSharedSecret); | 197 host_cert_, key_pair_, kTestSharedSecret); |
198 | 198 |
199 RunChannelAuth(net::ERR_CERT_INVALID, net::ERR_CONNECTION_CLOSED); | 199 RunChannelAuth(net::ERR_CERT_INVALID, net::ERR_CONNECTION_CLOSED); |
200 | 200 |
201 ASSERT_TRUE(host_socket_.get() == nullptr); | 201 ASSERT_TRUE(host_socket_.get() == nullptr); |
202 } | 202 } |
203 | 203 |
204 } // namespace protocol | 204 } // namespace protocol |
205 } // namespace remoting | 205 } // namespace remoting |
OLD | NEW |