Index: net/cert/mock_cert_verifier.h |
diff --git a/net/cert/mock_cert_verifier.h b/net/cert/mock_cert_verifier.h |
index b68429ca28c7135862b18ba9ec60d57bc912028c..6ec560a509d7b1f0c9d0aea4f6832ce00707b5cf 100644 |
--- a/net/cert/mock_cert_verifier.h |
+++ b/net/cert/mock_cert_verifier.h |
@@ -26,10 +26,7 @@ class MockCertVerifier : public CertVerifier { |
~MockCertVerifier() override; |
// CertVerifier implementation |
- int Verify(X509Certificate* cert, |
- const std::string& hostname, |
- const std::string& ocsp_response, |
- int flags, |
+ int Verify(const CertVerifier::RequestParams& params, |
CRLSet* crl_set, |
CertVerifyResult* verify_result, |
const CompletionCallback& callback, |
@@ -46,13 +43,13 @@ class MockCertVerifier : public CertVerifier { |
// copying |verify_result| into the verified result. |
// Note: Only the primary certificate of |cert| is checked. Any intermediate |
// certificates will be ignored. |
- void AddResultForCert(X509Certificate* cert, |
+ void AddResultForCert(scoped_refptr<X509Certificate> cert, |
const CertVerifyResult& verify_result, |
int rv); |
// Same as AddResultForCert(), but further restricts it to only return for |
// hostnames that match |host_pattern|. |
- void AddResultForCertAndHost(X509Certificate* cert, |
+ void AddResultForCertAndHost(scoped_refptr<X509Certificate> cert, |
const std::string& host_pattern, |
const CertVerifyResult& verify_result, |
int rv); |