| Index: net/cert/ocsp_verify_result.cc
|
| diff --git a/net/cert/ocsp_verify_result.cc b/net/cert/ocsp_verify_result.cc
|
| index b5ea670ef160e2ff025e182d8c3f25ebf6645a16..35069e711d3853827a23c65e5cb12ad7a57fe121 100644
|
| --- a/net/cert/ocsp_verify_result.cc
|
| +++ b/net/cert/ocsp_verify_result.cc
|
| @@ -10,4 +10,15 @@ OCSPVerifyResult::OCSPVerifyResult() = default;
|
| OCSPVerifyResult::OCSPVerifyResult(const OCSPVerifyResult&) = default;
|
| OCSPVerifyResult::~OCSPVerifyResult() = default;
|
|
|
| +bool OCSPVerifyResult::operator==(const OCSPVerifyResult& other) const {
|
| + if (response_status != other.response_status)
|
| + return false;
|
| +
|
| + if (response_status == PROVIDED) {
|
| + // |revocation_status| is only defined when |response_status| is PROVIDED.
|
| + return revocation_status == other.revocation_status;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| } // namespace net
|
|
|