| Index: net/cert/internal/path_builder_pkits_unittest.cc
|
| diff --git a/net/cert/internal/path_builder_pkits_unittest.cc b/net/cert/internal/path_builder_pkits_unittest.cc
|
| index 26bd043c5f0fb5a3b9f34259e2ba6468b52e6239..4039428687e80f4e954374ddd7d76964a62a95d3 100644
|
| --- a/net/cert/internal/path_builder_pkits_unittest.cc
|
| +++ b/net/cert/internal/path_builder_pkits_unittest.cc
|
| @@ -58,9 +58,10 @@ class PathBuilderPkitsTestDelegate {
|
| }
|
| ParsedCertificateList certs;
|
| for (const std::string& der : cert_ders) {
|
| - certs.push_back(ParsedCertificate::CreateFromCertificateCopy(der, {}));
|
| - if (!certs.back()) {
|
| - ADD_FAILURE() << "ParsedCertificate::CreateFromCertificateCopy failed";
|
| + CertErrors errors;
|
| + if (!ParsedCertificate::CreateAndAddToVector(der, {}, &certs, &errors)) {
|
| + ADD_FAILURE() << "ParseCertificate::CreateAndAddToVector() failed:\n"
|
| + << errors.ToDebugString();
|
| return false;
|
| }
|
| }
|
|
|