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