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

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

Issue 2346663002: Generalize rebase-errors.py so it works for other files. (Closed)
Patch Set: update var name Created 4 years, 3 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 54b4357375e3a961f593299c5a7a2905f5053cd8..bfb4b62c246d5f996e1bf4f7591e442716c7ba22 100644
--- a/net/cert/internal/verify_certificate_chain_unittest.cc
+++ b/net/cert/internal/verify_certificate_chain_unittest.cc
@@ -18,7 +18,8 @@ class VerifyCertificateChainDelegate {
const scoped_refptr<TrustAnchor>& trust_anchor,
const der::GeneralizedTime& time,
bool expected_result,
- const std::string& expected_errors) {
+ const std::string& expected_errors,
+ const std::string& test_file_path) {
ASSERT_TRUE(trust_anchor);
SimpleSignaturePolicy signature_policy(1024);
@@ -27,7 +28,8 @@ class VerifyCertificateChainDelegate {
bool result = VerifyCertificateChain(chain, trust_anchor.get(),
&signature_policy, time, &errors);
EXPECT_EQ(expected_result, result);
- EXPECT_EQ(expected_errors, errors.ToDebugString());
+ EXPECT_EQ(expected_errors, errors.ToDebugString()) << "Test file: "
+ << test_file_path;
}
};

Powered by Google App Engine
This is Rietveld 408576698