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

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

Issue 2918913002: Add path validation error expectations for PKITS tests. (Closed)
Patch Set: checkpoint Created 3 years, 7 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 d8b1c6992cc70b18fadb9ebb545dedd0b7d0ea60..fdaddc07f7642cc95f9094478d91a1c52d5b92d8 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|.
+//
+// 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,
+ const CertPathErrors& actual_errors,
+ const ParsedCertificateList& chain,
+ const std::string& errors_file_path);
+
+// Asserts that |actual_errors| matches |expected_errors|.
+//
+// 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,
+ const CertErrors& actual_errors,
+ const std::string& errors_file_path);
+
} // namespace net
#endif // NET_CERT_INTERNAL_TEST_HELPERS_H_

Powered by Google App Engine
This is Rietveld 408576698