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

Side by Side Diff: net/base/transport_security_state_unittest.cc

Issue 9476035: Make CertVerifier a pure virtual interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win shared fix Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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 "net/base/transport_security_state.h" 5 #include "net/base/transport_security_state.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/sha1.h" 12 #include "base/sha1.h"
13 #include "base/string_piece.h" 13 #include "base/string_piece.h"
14 #include "net/base/asn1_util.h" 14 #include "net/base/asn1_util.h"
15 #include "net/base/cert_test_util.h" 15 #include "net/base/cert_test_util.h"
16 #include "net/base/cert_verifier.h" 16 #include "net/base/cert_verifier.h"
17 #include "net/base/cert_verify_result.h"
17 #include "net/base/ssl_info.h" 18 #include "net/base/ssl_info.h"
18 #include "net/base/test_root_certs.h" 19 #include "net/base/test_root_certs.h"
19 #include "net/base/x509_certificate.h" 20 #include "net/base/x509_certificate.h"
20 #include "net/http/http_util.h" 21 #include "net/http/http_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 23
23 #if defined(USE_OPENSSL) 24 #if defined(USE_OPENSSL)
24 #include "crypto/openssl_util.h" 25 #include "crypto/openssl_util.h"
25 #else 26 #else
26 #include "crypto/nss_util.h" 27 #include "crypto/nss_util.h"
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 // Expect to fail for SNI hosts when not searching the SNI list: 1270 // Expect to fail for SNI hosts when not searching the SNI list:
1270 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( 1271 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty(
1271 "gmail.com", false)); 1272 "gmail.com", false));
1272 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( 1273 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty(
1273 "googlegroups.com", false)); 1274 "googlegroups.com", false));
1274 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty( 1275 EXPECT_FALSE(TransportSecurityState::IsGooglePinnedProperty(
1275 "www.googlegroups.com", false)); 1276 "www.googlegroups.com", false));
1276 } 1277 }
1277 1278
1278 } // namespace net 1279 } // namespace net
OLDNEW
« no previous file with comments | « net/base/single_request_cert_verifier.cc ('k') | net/http/disk_cache_based_ssl_host_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698