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 #ifndef NET_CERT_INTERNAL_NIST_PKITS_UNITTEST_H_ | 5 #ifndef NET_CERT_INTERNAL_NIST_PKITS_UNITTEST_H_ |
6 #define NET_CERT_INTERNAL_NIST_PKITS_UNITTEST_H_ | 6 #define NET_CERT_INTERNAL_NIST_PKITS_UNITTEST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "net/cert/internal/test_helpers.h" | 10 #include "net/cert/internal/test_helpers.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 void SetInitialInhibitAnyPolicy(bool b); | 35 void SetInitialInhibitAnyPolicy(bool b); |
36 | 36 |
37 // ---------------- | 37 // ---------------- |
38 // Inputs | 38 // Inputs |
39 // ---------------- | 39 // ---------------- |
40 | 40 |
41 // A set of policy OIDs to use for "initial-policy-set". | 41 // A set of policy OIDs to use for "initial-policy-set". |
42 std::set<der::Input> initial_policy_set; | 42 std::set<der::Input> initial_policy_set; |
43 | 43 |
44 // The value of "initial-explicit-policy". | 44 // The value of "initial-explicit-policy". |
45 bool initial_explicit_policy = false; | 45 InitialExplicitPolicy initial_explicit_policy = InitialExplicitPolicy::kFalse; |
46 | 46 |
47 // The value of "initial-policy-mapping-inhibit". | 47 // The value of "initial-policy-mapping-inhibit". |
48 bool initial_policy_mapping_inhibit = false; | 48 InitialPolicyMappingInhibit initial_policy_mapping_inhibit = |
| 49 InitialPolicyMappingInhibit::kFalse; |
49 | 50 |
50 // The value of "initial-inhibit-any-policy". | 51 // The value of "initial-inhibit-any-policy". |
51 bool initial_inhibit_any_policy = false; | 52 InitialAnyPolicyInhibit initial_inhibit_any_policy = |
| 53 InitialAnyPolicyInhibit::kFalse; |
52 | 54 |
53 // This is the time when PKITS was published. | 55 // This is the time when PKITS was published. |
54 der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0}; | 56 der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0}; |
55 | 57 |
56 // ---------------- | 58 // ---------------- |
57 // Expected outputs | 59 // Expected outputs |
58 // ---------------- | 60 // ---------------- |
59 | 61 |
60 // Whether path validation should succeed. | 62 // Whether path validation should succeed. |
61 bool should_validate = false; | 63 bool should_validate = false; |
(...skipping 23 matching lines...) Expand all Loading... |
85 PkitsTestDelegate::RunTest(cert_ders, crl_ders, info); | 87 PkitsTestDelegate::RunTest(cert_ders, crl_ders, info); |
86 } | 88 } |
87 }; | 89 }; |
88 | 90 |
89 // Inline the generated test code: | 91 // Inline the generated test code: |
90 #include "net/third_party/nist-pkits/pkits_testcases-inl.h" | 92 #include "net/third_party/nist-pkits/pkits_testcases-inl.h" |
91 | 93 |
92 } // namespace net | 94 } // namespace net |
93 | 95 |
94 #endif // NET_CERT_INTERNAL_NIST_PKITS_UNITTEST_H_ | 96 #endif // NET_CERT_INTERNAL_NIST_PKITS_UNITTEST_H_ |
OLD | NEW |