Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: components/security_state/security_state_model_unittest.cc

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/cronet/ios/test/quic_test_server.cc ('k') | components/ssl_errors/error_classification_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698