| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/cert/ocsp_verify_result.h" | 5 #include "net/cert/ocsp_verify_result.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 OCSPVerifyResult::OCSPVerifyResult() = default; | 9 OCSPVerifyResult::OCSPVerifyResult() = default; |
| 10 OCSPVerifyResult::OCSPVerifyResult(const OCSPVerifyResult&) = default; | 10 OCSPVerifyResult::OCSPVerifyResult(const OCSPVerifyResult&) = default; |
| 11 OCSPVerifyResult::~OCSPVerifyResult() = default; | 11 OCSPVerifyResult::~OCSPVerifyResult() = default; |
| 12 | 12 |
| 13 bool OCSPVerifyResult::operator==(const OCSPVerifyResult& other) const { |
| 14 if (response_status != other.response_status) |
| 15 return false; |
| 16 |
| 17 if (response_status == PROVIDED) { |
| 18 // |revocation_status| is only defined when |response_status| is PROVIDED. |
| 19 return revocation_status == other.revocation_status; |
| 20 } |
| 21 return true; |
| 22 } |
| 23 |
| 13 } // namespace net | 24 } // namespace net |
| OLD | NEW |