Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(628)

Unified Diff: net/test/ct_test_util.cc

Issue 2225223002: Certificate Transparency: Change CTVerifyResult to have a single list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« net/cert/ct_verify_result.cc ('K') | « net/ssl/ssl_info.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/ct_test_util.cc
diff --git a/net/test/ct_test_util.cc b/net/test/ct_test_util.cc
index 3d79967f14f24e9c1220928ece2f522e18face23..d98fa21c4fee57a98d093e2c047aab4742191468 100644
--- a/net/test/ct_test_util.cc
+++ b/net/test/ct_test_util.cc
@@ -399,15 +399,15 @@ std::string GetSCTListWithInvalidSCT() {
bool CheckForSingleVerifiedSCTInResult(const ct::CTVerifyResult& result,
const std::string& log_description) {
- return (result.verified_scts.size() == 1U) && result.invalid_scts.empty() &&
- result.unknown_logs_scts.empty() &&
- result.verified_scts[0]->log_description == log_description;
+ return (result.scts.size() == 1 &&
+ result.scts[0].status == ct::SCT_STATUS_OK &&
+ result.scts[0].sct->log_description == log_description);
}
bool CheckForSCTOrigin(const ct::CTVerifyResult& result,
ct::SignedCertificateTimestamp::Origin origin) {
- return (result.verified_scts.size() > 0) &&
- (result.verified_scts[0]->origin == origin);
+ return (result.scts.size() > 0) && (result.scts[0].status == SCT_STATUS_OK) &&
+ (result.scts[0].sct->origin == origin);
}
} // namespace ct
« net/cert/ct_verify_result.cc ('K') | « net/ssl/ssl_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698