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

Unified Diff: net/cert/internal/test_helpers.h

Issue 2126803004: WIP: NSS trust store integration for path builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert-command-line-path-builder-add_certpathbuilder
Patch Set: . Created 4 years, 4 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
Index: net/cert/internal/test_helpers.h
diff --git a/net/cert/internal/test_helpers.h b/net/cert/internal/test_helpers.h
index 999c37b55699cc02d059cad4caadeebf6a536510..d4230057089f94667809efa5b9323f668c7556fa 100644
--- a/net/cert/internal/test_helpers.h
+++ b/net/cert/internal/test_helpers.h
@@ -11,6 +11,7 @@
#include <string>
#include <vector>
+#include "net/cert/internal/parsed_certificate.h"
#include "net/der/input.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -74,6 +75,15 @@ template <size_t N>
return ReadTestDataFromPemFile(file_path_ascii, mappings, N);
}
+// Reads a test case from |file_name|. Test cases are comprised of a
+// certificate chain, trust store, a timestamp to validate at, and the
+// expected result of verification.
+void ReadCertChainTestFromFile(const std::string& file_path_ascii,
+ ParsedCertificateList* chain,
+ ParsedCertificateList* roots,
+ der::GeneralizedTime* time,
+ bool* verify_result);
+
} // namespace net
#endif // NET_CERT_INTERNAL_TEST_HELPERS_H_
« no previous file with comments | « net/cert/internal/path_builder_verify_certificate_chain_unittest.cc ('k') | net/cert/internal/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698