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