| Index: net/cert/internal/cert_issuer_source_static_unittest.cc
|
| diff --git a/net/cert/internal/cert_issuer_source_static_unittest.cc b/net/cert/internal/cert_issuer_source_static_unittest.cc
|
| index d59744c61abf2c2cba2791752cda344c8fdbd665..949035c0eb10635a22eb11f2b94f1adab8beaa92 100644
|
| --- a/net/cert/internal/cert_issuer_source_static_unittest.cc
|
| +++ b/net/cert/internal/cert_issuer_source_static_unittest.cc
|
| @@ -5,6 +5,7 @@
|
| #include "net/cert/internal/cert_issuer_source_static.h"
|
|
|
| #include "base/bind.h"
|
| +#include "net/cert/internal/cert_errors.h"
|
| #include "net/cert/internal/parsed_certificate.h"
|
| #include "net/cert/internal/test_helpers.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -36,9 +37,13 @@ void NotCalled(CertIssuerSource::Request* req) {
|
| "CERTIFICATE", &der);
|
| if (!r)
|
| return r;
|
| - *result = ParsedCertificate::CreateFromCertificateCopy(der, {});
|
| - if (!*result)
|
| - return ::testing::AssertionFailure() << "CreateFromCertificateCopy failed";
|
| + CertErrors errors;
|
| + *result = ParsedCertificate::Create(der, {}, &errors);
|
| + if (!*result) {
|
| + return ::testing::AssertionFailure()
|
| + << "ParsedCertificate::Create() failed:\n"
|
| + << errors.ToDebugString();
|
| + }
|
| return ::testing::AssertionSuccess();
|
| }
|
|
|
|
|