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