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

  // No methods on |mock_fetcher| should be called.
  auto mock_fetcher = base::MakeRefCounted<StrictMock<MockCertNetFetcher>>();
  CertIssuerSourceAia aia_source(mock_fetcher);
  std::unique_ptr<CertIssuerSource::Request> request;
  aia_source.AsyncGetIssuersOf(cert.get(), &request);
  EXPECT_EQ(nullptr, request);
}
// If the AuthorityInfoAccess extension is not present, AsyncGetIssuersOf should
// synchronously indicate no results.
If the AuthorityInfoAccess extension is not present, AsyncGetIssuersOf should
synchronously indicate no results.
If the AuthorityInfoAccess extension is not present AsyncGetIssuersOf should synchronously indicate no results .
TEST(CertIssuerSourceAiaTest, NoAia) {
  scoped_refptr<ParsedCertificate> cert;
  ASSERT_TRUE(ReadTestCert("target_no_aia.pem", &cert));
  auto mock_fetcher = base::MakeRefCounted<StrictMock<MockCertNetFetcher>>();
  CertIssuerSourceAia aia_source(mock_fetcher);
  std::unique_ptr<CertIssuerSource::Request> request;
  aia_source.AsyncGetIssuersOf(cert.get(), &request);
  EXPECT_EQ(nullptr, request);
}
TEST ( CertIssuerSourceAiaTest , NoAia ) { scoped_refptr < ParsedCertificate > cert ; ASSERT_TRUE ( ReadTestCert ( " " , & cert ) ) ; auto mock_fetcher = base :: MakeRefCounted < StrictMock < MockCertNetFetcher > > ( ) ; CertIssuerSourceAia aia_source ( mock_fetcher ) ; std :: unique_ptr < CertIssuerSource :: Request > request ; aia_source . AsyncGetIssuersOf ( cert . get ( ) , & request ) ; EXPECT_EQ ( nullptr , request ) ; }
If the AuthorityInfoAccess extension is not present, AsyncGetIssuersOf should
synchronously indicate no results.
If the AuthorityInfoAccess extension is not present AsyncGetIssuersOf should synchronously indicate no results .
// No methods on |mock_fetcher| should be called.