OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/security_state/security_state_model.h" | 5 #include "components/security_state/security_state_model.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "components/security_state/security_state_model_client.h" | 9 #include "components/security_state/security_state_model_client.h" |
10 #include "net/base/test_data_directory.h" | |
11 #include "net/cert/x509_certificate.h" | 10 #include "net/cert/x509_certificate.h" |
12 #include "net/ssl/ssl_connection_status_flags.h" | 11 #include "net/ssl/ssl_connection_status_flags.h" |
13 #include "net/test/cert_test_util.h" | 12 #include "net/test/cert_test_util.h" |
14 #include "net/test/test_certificate_data.h" | 13 #include "net/test/test_certificate_data.h" |
| 14 #include "net/test/test_data_directory.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace security_state { | 17 namespace security_state { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kUrl[] = "https://foo.test"; | 21 const char kUrl[] = "https://foo.test"; |
22 | 22 |
23 class TestSecurityStateModelClient : public SecurityStateModelClient { | 23 class TestSecurityStateModelClient : public SecurityStateModelClient { |
24 public: | 24 public: |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 << net::SSL_CONNECTION_VERSION_SHIFT); | 186 << net::SSL_CONNECTION_VERSION_SHIFT); |
187 client.SetCipherSuite(ciphersuite); | 187 client.SetCipherSuite(ciphersuite); |
188 const SecurityStateModel::SecurityInfo& security_info = | 188 const SecurityStateModel::SecurityInfo& security_info = |
189 model.GetSecurityInfo(); | 189 model.GetSecurityInfo(); |
190 EXPECT_FALSE(security_info.is_secure_protocol_and_ciphersuite); | 190 EXPECT_FALSE(security_info.is_secure_protocol_and_ciphersuite); |
191 } | 191 } |
192 | 192 |
193 } // namespace | 193 } // namespace |
194 | 194 |
195 } // namespace security_state | 195 } // namespace security_state |
OLD | NEW |