Home | History | Annotate | Download | only in base

Lines Matching refs:google_cert

185 void CheckGoogleCert(const scoped_refptr<X509Certificate>& google_cert,
188 ASSERT_NE(static_cast<X509Certificate*>(NULL), google_cert);
190 const CertPrincipal& subject = google_cert->subject();
201 const CertPrincipal& issuer = google_cert->issuer();
213 const Time& valid_start = google_cert->valid_start();
216 const Time& valid_expiry = google_cert->valid_expiry();
219 const SHA1Fingerprint& fingerprint = google_cert->fingerprint();
224 google_cert->GetDNSNames(&dns_names);
233 EXPECT_EQ(OK, google_cert->Verify("www.google.com", flags, &verify_result));
239 scoped_refptr<X509Certificate> google_cert(
243 CheckGoogleCert(google_cert, google_fingerprint,
428 scoped_refptr<X509Certificate> google_cert(
437 ASSERT_EQ(sizeof(google_serial), google_cert->serial_number().size());
438 EXPECT_TRUE(memcmp(google_cert->serial_number().data(), google_serial,
710 scoped_refptr<X509Certificate> google_cert(X509Certificate::CreateFromBytes(
718 EXPECT_EQ(policy.Check(google_cert.get()), CertPolicy::UNKNOWN);
723 policy.Allow(google_cert.get());
725 EXPECT_EQ(policy.Check(google_cert.get()), CertPolicy::ALLOWED);
730 policy.Deny(google_cert.get());
732 EXPECT_EQ(policy.Check(google_cert.get()), CertPolicy::DENIED);
739 EXPECT_EQ(policy.Check(google_cert.get()), CertPolicy::DENIED);