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

Side by Side Diff: net/test/cert_test_util.cc

Issue 689563002: Cleanup: Remove unneeded path_service.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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/socket/ssl_server_socket_unittest.cc ('k') | net/test/cert_test_util_nss.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/test/cert_test_util.h" 5 #include "net/test/cert_test_util.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/path_service.h"
10 #include "net/cert/ev_root_ca_metadata.h" 9 #include "net/cert/ev_root_ca_metadata.h"
11 #include "net/cert/x509_certificate.h" 10 #include "net/cert/x509_certificate.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 namespace net { 13 namespace net {
15 14
16 CertificateList CreateCertificateListFromFile( 15 CertificateList CreateCertificateListFromFile(
17 const base::FilePath& certs_dir, 16 const base::FilePath& certs_dir,
18 const std::string& cert_file, 17 const std::string& cert_file,
19 int format) { 18 int format) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 : fingerprint_(fingerprint), 65 : fingerprint_(fingerprint),
67 ev_root_ca_metadata_(ev_root_ca_metadata) { 66 ev_root_ca_metadata_(ev_root_ca_metadata) {
68 EXPECT_TRUE(ev_root_ca_metadata->AddEVCA(fingerprint, policy)); 67 EXPECT_TRUE(ev_root_ca_metadata->AddEVCA(fingerprint, policy));
69 } 68 }
70 69
71 ScopedTestEVPolicy::~ScopedTestEVPolicy() { 70 ScopedTestEVPolicy::~ScopedTestEVPolicy() {
72 EXPECT_TRUE(ev_root_ca_metadata_->RemoveEVCA(fingerprint_)); 71 EXPECT_TRUE(ev_root_ca_metadata_->RemoveEVCA(fingerprint_));
73 } 72 }
74 73
75 } // namespace net 74 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_unittest.cc ('k') | net/test/cert_test_util_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698