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

Side by Side Diff: net/cert/cert_verify_proc_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
« no previous file with comments | « net/cert/cert_verifier_unittest.cc ('k') | net/cert/cert_verify_proc_whitelist_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/cert/cert_verify_proc.h" 5 #include "net/cert/cert_verify_proc.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/sha1.h" 14 #include "base/sha1.h"
15 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "crypto/sha2.h" 17 #include "crypto/sha2.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/cert/asn1_util.h" 19 #include "net/cert/asn1_util.h"
21 #include "net/cert/cert_status_flags.h" 20 #include "net/cert/cert_status_flags.h"
22 #include "net/cert/cert_verifier.h" 21 #include "net/cert/cert_verifier.h"
23 #include "net/cert/cert_verify_result.h" 22 #include "net/cert/cert_verify_result.h"
24 #include "net/cert/crl_set.h" 23 #include "net/cert/crl_set.h"
25 #include "net/cert/crl_set_storage.h" 24 #include "net/cert/crl_set_storage.h"
26 #include "net/cert/test_root_certs.h" 25 #include "net/cert/test_root_certs.h"
27 #include "net/cert/x509_certificate.h" 26 #include "net/cert/x509_certificate.h"
28 #include "net/test/cert_test_util.h" 27 #include "net/test/cert_test_util.h"
29 #include "net/test/test_certificate_data.h" 28 #include "net/test/test_certificate_data.h"
29 #include "net/test/test_data_directory.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 31
32 #if defined(OS_ANDROID) 32 #if defined(OS_ANDROID)
33 #include "base/android/build_info.h" 33 #include "base/android/build_info.h"
34 #endif 34 #endif
35 35
36 using base::HexEncode; 36 using base::HexEncode;
37 37
38 namespace net { 38 namespace net {
39 39
(...skipping 1638 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 int flags = 0; 1678 int flags = 0;
1679 CertVerifyResult verify_result; 1679 CertVerifyResult verify_result;
1680 int error = Verify(cert.get(), "127.0.0.1", flags, NULL, empty_cert_list_, 1680 int error = Verify(cert.get(), "127.0.0.1", flags, NULL, empty_cert_list_,
1681 &verify_result); 1681 &verify_result);
1682 EXPECT_EQ(ERR_CERT_INVALID, error); 1682 EXPECT_EQ(ERR_CERT_INVALID, error);
1683 EXPECT_EQ(CERT_STATUS_INVALID, verify_result.cert_status); 1683 EXPECT_EQ(CERT_STATUS_INVALID, verify_result.cert_status);
1684 } 1684 }
1685 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 1685 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
1686 1686
1687 } // namespace net 1687 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/cert_verifier_unittest.cc ('k') | net/cert/cert_verify_proc_whitelist_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698