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

Unified Diff: net/cert/internal/verify_certificate_chain_unittest.cc

Issue 2918913002: Add path validation error expectations for PKITS tests. (Closed)
Patch Set: Address Matt's comments 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/verify_certificate_chain_unittest.cc
diff --git a/net/cert/internal/verify_certificate_chain_unittest.cc b/net/cert/internal/verify_certificate_chain_unittest.cc
index 82851d034a80cfe05237ad96931f5554c6009030..9b1e3e898a665c4a4354375976588bbf6545aadc 100644
--- a/net/cert/internal/verify_certificate_chain_unittest.cc
+++ b/net/cert/internal/verify_certificate_chain_unittest.cc
@@ -5,6 +5,7 @@
#include "net/cert/internal/verify_certificate_chain.h"
#include "net/cert/internal/signature_policy.h"
+#include "net/cert/internal/test_helpers.h"
#include "net/cert/internal/trust_store.h"
#include "net/cert/internal/verify_certificate_chain_typed_unittest.h"
@@ -26,8 +27,8 @@ class VerifyCertificateChainDelegate {
test.user_initial_policy_set, test.initial_policy_mapping_inhibit,
test.initial_any_policy_inhibit,
nullptr /*user_constrained_policy_set*/, &errors);
- EXPECT_EQ(test.expected_errors, errors.ToDebugString(test.chain))
- << "Test file: " << test_file_path;
+ VerifyCertPathErrors(test.expected_errors, errors, test.chain,
+ test_file_path);
}
};
« no previous file with comments | « net/cert/internal/verify_certificate_chain_pkits_unittest.cc ('k') | net/data/parse_certificate_unittest/rebase-errors.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698