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

Unified Diff: net/cert/internal/nist_pkits_unittest.cc

Issue 2903283002: Add policies support to VerifyCertificateChain(). (Closed)
Patch Set: improve comments, and null policy tree when anyPolicy is incorrectly mapped Created 3 years, 7 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
« no previous file with comments | « net/cert/internal/nist_pkits_unittest.h ('k') | net/cert/internal/path_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/nist_pkits_unittest.cc
diff --git a/net/cert/internal/nist_pkits_unittest.cc b/net/cert/internal/nist_pkits_unittest.cc
index 89807099dac6d707768723dde8ab9c68f651aa8d..6697ded9056dc5850cac6cc31ca98f5b5a293256 100644
--- a/net/cert/internal/nist_pkits_unittest.cc
+++ b/net/cert/internal/nist_pkits_unittest.cc
@@ -57,15 +57,18 @@ PkitsTestInfo::PkitsTestInfo() {
}
void PkitsTestInfo::SetInitialExplicitPolicy(bool b) {
- initial_explicit_policy = b;
+ initial_explicit_policy =
+ b ? InitialExplicitPolicy::kTrue : InitialExplicitPolicy::kFalse;
}
void PkitsTestInfo::SetInitialPolicyMappingInhibit(bool b) {
- initial_policy_mapping_inhibit = b;
+ initial_policy_mapping_inhibit = b ? InitialPolicyMappingInhibit::kTrue
+ : InitialPolicyMappingInhibit::kFalse;
}
void PkitsTestInfo::SetInitialInhibitAnyPolicy(bool b) {
- initial_inhibit_any_policy = b;
+ initial_inhibit_any_policy =
+ b ? InitialAnyPolicyInhibit::kTrue : InitialAnyPolicyInhibit::kFalse;
}
PkitsTestInfo::~PkitsTestInfo() = default;
« no previous file with comments | « net/cert/internal/nist_pkits_unittest.h ('k') | net/cert/internal/path_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698