src/net/cert/internal/cert_issuer_source_aia_unittest.cc
TEST(CertIssuerSourceAiaTest, NoSyncResults) {
  scoped_refptr<ParsedCertificate> cert;
  ASSERT_TRUE(ReadTestCert("target_two_aia.pem", &cert));

  // No methods on |mock_fetcher| should be called.
  auto mock_fetcher = base::MakeRefCounted<StrictMock<MockCertNetFetcher>>();
  CertIssuerSourceAia aia_source(mock_fetcher);
  ParsedCertificateList issuers;
  aia_source.SyncGetIssuersOf(cert.get(), &issuers);
  EXPECT_EQ(0U, issuers.size());
}
// CertIssuerSourceAia does not return results for SyncGetIssuersOf.
CertIssuerSourceAia does not return results for SyncGetIssuersOf.
CertIssuerSourceAia does not return results for SyncGetIssuersOf .
TEST(CertIssuerSourceAiaTest, NoSyncResults) {
  scoped_refptr<ParsedCertificate> cert;
  ASSERT_TRUE(ReadTestCert("target_two_aia.pem", &cert));
  auto mock_fetcher = base::MakeRefCounted<StrictMock<MockCertNetFetcher>>();
  CertIssuerSourceAia aia_source(mock_fetcher);
  ParsedCertificateList issuers;
  aia_source.SyncGetIssuersOf(cert.get(), &issuers);
  EXPECT_EQ(0U, issuers.size());
}
TEST ( CertIssuerSourceAiaTest , NoSyncResults ) { scoped_refptr < ParsedCertificate > cert ; ASSERT_TRUE ( ReadTestCert ( " " , & cert ) ) ; auto mock_fetcher = base :: MakeRefCounted < StrictMock < MockCertNetFetcher > > ( ) ; CertIssuerSourceAia aia_source ( mock_fetcher ) ; ParsedCertificateList issuers ; aia_source . SyncGetIssuersOf ( cert . get ( ) , & issuers ) ; EXPECT_EQ ( 0U , issuers . size ( ) ) ; }
CertIssuerSourceAia does not return results for SyncGetIssuersOf.
CertIssuerSourceAia does not return results for SyncGetIssuersOf .
// No methods on |mock_fetcher| should be called.