Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: chrome/browser/ssl/ssl_browser_tests.cc

Issue 2000503002: Remove the fingerprint and ca_fingerprint from X509Certificate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_cache
Patch Set: Fix IDN test Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ssl/ssl_browser_tests.cc
diff --git a/chrome/browser/ssl/ssl_browser_tests.cc b/chrome/browser/ssl/ssl_browser_tests.cc
index bb671dbce6e05eef4a5faba5d8ce0d2b3db952e9..658958394a5f17af3ede8d8443f226e9cd1f8352 100644
--- a/chrome/browser/ssl/ssl_browser_tests.cc
+++ b/chrome/browser/ssl/ssl_browser_tests.cc
@@ -2983,8 +2983,8 @@ class SSLBlockingPageIDNTest : public SecurityInterstitialIDNTest {
content::WebContents* contents,
const GURL& request_url) const override {
net::SSLInfo ssl_info;
- ssl_info.cert = new net::X509Certificate(
- request_url.host(), "CA", base::Time::Max(), base::Time::Max());
+ ssl_info.cert =
+ net::ImportCertFromFile(net::GetTestCertsDirectory(), "ok_cert.pem");
return new SSLBlockingPage(
contents, net::ERR_CERT_CONTAINS_ERRORS, ssl_info, request_url, 0,
base::Time::NowFromSystemTime(), nullptr, base::Callback<void(bool)>());

Powered by Google App Engine
This is Rietveld 408576698