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_ |