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

Unified Diff: net/test/cert_test_util.h

Issue 2670643008: Move CertVerifyProcMac unit-tests to their own file. (Closed)
Patch Set: Rebase + add missing include Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/cert_verify_proc_unittest.cc ('k') | net/test/cert_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/cert_test_util.h
diff --git a/net/test/cert_test_util.h b/net/test/cert_test_util.h
index f948bd8b06c8145da9f3aa06aabcbde6eed77c74..f5b104b12255f64c2a8e9dd8126c4b89f1e3edfa 100644
--- a/net/test/cert_test_util.h
+++ b/net/test/cert_test_util.h
@@ -10,6 +10,7 @@
#include "base/memory/ref_counted.h"
#include "net/cert/x509_cert_types.h"
#include "net/cert/x509_certificate.h"
+#include "testing/gtest/include/gtest/gtest.h"
#if defined(USE_NSS_CERTS)
// From <pk11pub.h>
@@ -48,6 +49,13 @@ CertificateList CreateCertificateListFromFile(const base::FilePath& certs_dir,
const std::string& cert_file,
int format);
+// Imports all the certificates given a list of filenames, and assigns the
+// result to |*certs|. The filenames are relative to the test certificates
+// directory.
+::testing::AssertionResult LoadCertificateFiles(
+ const std::vector<std::string>& cert_filenames,
+ CertificateList* certs);
+
// Imports all of the certificates in |cert_file|, a file in |certs_dir|, into
// a new X509Certificate. The first certificate in the chain will be used for
// the returned cert, with any additional certificates configured as
« no previous file with comments | « net/cert/cert_verify_proc_unittest.cc ('k') | net/test/cert_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698