Index: net/cert/internal/test_helpers.h |
diff --git a/net/cert/internal/test_helpers.h b/net/cert/internal/test_helpers.h |
index d8b1c6992cc70b18fadb9ebb545dedd0b7d0ea60..d356e539c0af379c2e5f42639497a6241b1a8e22 100644 |
--- a/net/cert/internal/test_helpers.h |
+++ b/net/cert/internal/test_helpers.h |
@@ -127,6 +127,23 @@ bool ReadCertChainFromFile(const std::string& file_path_ascii, |
// Reads a data file relative to the src root directory. |
std::string ReadTestFileToString(const std::string& file_path_ascii); |
+// Asserts that |actual_errors| matches |expected_errors_str|. |
+// |
+// This is a helper function to simplify rebasing the error expectations when |
+// they originate from a test file. |
+void VerifyCertPathErrors(const std::string& expected_errors_str, |
+ const CertPathErrors& actual_errors, |
+ const ParsedCertificateList& chain, |
+ const std::string& errors_file_path); |
+ |
+// Asserts that |actual_errors| matches |expected_errors_str|. |
+// |
+// This is a helper function to simplify rebasing the error expectations when |
+// they originate from a test file. |
+void VerifyCertErrors(const std::string& expected_errors_str, |
+ const CertErrors& actual_errors, |
+ const std::string& errors_file_path); |
+ |
} // namespace net |
#endif // NET_CERT_INTERNAL_TEST_HELPERS_H_ |