Index: net/cert/internal/parse_certificate_unittest.cc |
diff --git a/net/cert/internal/parse_certificate_unittest.cc b/net/cert/internal/parse_certificate_unittest.cc |
index 6ddc768f68fbf31b2305cf5f2d421b9073775f25..303d27be9f657ce4f7d8b8babe0cfca4cd1d9230 100644 |
--- a/net/cert/internal/parse_certificate_unittest.cc |
+++ b/net/cert/internal/parse_certificate_unittest.cc |
@@ -62,8 +62,7 @@ void RunCertificateTest(const std::string& file_name) { |
&signature_algorithm_tlv, &signature_value, &errors); |
EXPECT_EQ(expected_result, actual_result); |
- EXPECT_EQ(expected_errors, errors.ToDebugString()) << "Test file: " |
- << test_file_path; |
+ VerifyCertErrors(expected_errors, errors, test_file_path); |
// Ensure that the parsed certificate matches expectations. |
if (expected_result && actual_result) { |
@@ -166,8 +165,7 @@ void RunTbsCertificateTestGivenVersion(const std::string& file_name, |
ParseTbsCertificate(der::Input(&data), {}, &parsed, &errors); |
EXPECT_EQ(expected_result, actual_result); |
- EXPECT_EQ(expected_errors, errors.ToDebugString()) << "Test file: " |
- << test_file_path; |
+ VerifyCertErrors(expected_errors, errors, test_file_path); |
if (!expected_result || !actual_result) |
return; |