• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/cert/pki/cert_issuer_source_static.h"
6 
7 #include "net/cert/pki/cert_issuer_source_sync_unittest.h"
8 #include "net/cert/pki/parsed_certificate.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 
11 namespace net {
12 
13 namespace {
14 
15 class CertIssuerSourceStaticTestDelegate {
16  public:
AddCert(std::shared_ptr<const ParsedCertificate> cert)17   void AddCert(std::shared_ptr<const ParsedCertificate> cert) {
18     source_.AddCert(std::move(cert));
19   }
20 
source()21   CertIssuerSource& source() { return source_; }
22 
23  protected:
24   CertIssuerSourceStatic source_;
25 };
26 
27 INSTANTIATE_TYPED_TEST_SUITE_P(CertIssuerSourceStaticTest,
28                                CertIssuerSourceSyncTest,
29                                CertIssuerSourceStaticTestDelegate);
30 
31 INSTANTIATE_TYPED_TEST_SUITE_P(CertIssuerSourceStaticNormalizationTest,
32                                CertIssuerSourceSyncNormalizationTest,
33                                CertIssuerSourceStaticTestDelegate);
34 
35 }  // namespace
36 
37 }  // namespace net
38