| 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 #include "net/cert/internal/path_builder.h" | 5 #include "net/cert/internal/path_builder.h" |
| 6 | 6 |
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 #include "net/cert/internal/cert_issuer_source_static.h" | 8 #include "net/cert/internal/cert_issuer_source_static.h" |
| 9 #include "net/cert/internal/parse_certificate.h" | 9 #include "net/cert/internal/parse_certificate.h" |
| 10 #include "net/cert/internal/parsed_certificate.h" | 10 #include "net/cert/internal/parsed_certificate.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 SimpleSignaturePolicy signature_policy(1024); | 83 SimpleSignaturePolicy signature_policy(1024); |
| 84 | 84 |
| 85 // Run all tests at the time the PKITS was published. | 85 // Run all tests at the time the PKITS was published. |
| 86 der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0}; | 86 der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0}; |
| 87 | 87 |
| 88 CertPathBuilder::Result result; | 88 CertPathBuilder::Result result; |
| 89 CertPathBuilder path_builder(std::move(target_cert), &trust_store, | 89 CertPathBuilder path_builder(std::move(target_cert), &trust_store, |
| 90 &signature_policy, time, &result); | 90 &signature_policy, time, &result); |
| 91 path_builder.AddCertIssuerSource(&cert_issuer_source); | 91 path_builder.AddCertIssuerSource(&cert_issuer_source); |
| 92 | 92 |
| 93 CompletionStatus rv = path_builder.Run(base::Closure()); | 93 path_builder.Run(); |
| 94 EXPECT_EQ(CompletionStatus::SYNC, rv); | |
| 95 | 94 |
| 96 return result.HasValidPath(); | 95 return result.HasValidPath(); |
| 97 } | 96 } |
| 98 }; | 97 }; |
| 99 | 98 |
| 100 } // namespace | 99 } // namespace |
| 101 | 100 |
| 102 class PkitsTest01SignatureVerificationCustomPathBuilderFoo | 101 class PkitsTest01SignatureVerificationCustomPathBuilderFoo |
| 103 : public PkitsTest<PathBuilderPkitsTestDelegate> {}; | 102 : public PkitsTest<PathBuilderPkitsTestDelegate> {}; |
| 104 | 103 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 221 |
| 223 // TODO(mattm): CRL support: PkitsTest04BasicCertificateRevocationTests, | 222 // TODO(mattm): CRL support: PkitsTest04BasicCertificateRevocationTests, |
| 224 // PkitsTest05VerifyingPathswithSelfIssuedCertificates, | 223 // PkitsTest05VerifyingPathswithSelfIssuedCertificates, |
| 225 // PkitsTest14DistributionPoints, PkitsTest15DeltaCRLs | 224 // PkitsTest14DistributionPoints, PkitsTest15DeltaCRLs |
| 226 | 225 |
| 227 // TODO(mattm): Certificate Policies support: PkitsTest08CertificatePolicies, | 226 // TODO(mattm): Certificate Policies support: PkitsTest08CertificatePolicies, |
| 228 // PkitsTest09RequireExplicitPolicy PkitsTest10PolicyMappings, | 227 // PkitsTest09RequireExplicitPolicy PkitsTest10PolicyMappings, |
| 229 // PkitsTest11InhibitPolicyMapping, PkitsTest12InhibitAnyPolicy | 228 // PkitsTest11InhibitPolicyMapping, PkitsTest12InhibitAnyPolicy |
| 230 | 229 |
| 231 } // namespace net | 230 } // namespace net |
| OLD | NEW |