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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <utility> 5 #include <utility>
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 2965 matching lines...) Expand 10 before | Expand all | Expand 10 after
2976 EXPECT_FALSE(contents->IsLoading()); 2976 EXPECT_FALSE(contents->IsLoading());
2977 } 2977 }
2978 2978
2979 class SSLBlockingPageIDNTest : public SecurityInterstitialIDNTest { 2979 class SSLBlockingPageIDNTest : public SecurityInterstitialIDNTest {
2980 protected: 2980 protected:
2981 // SecurityInterstitialIDNTest implementation 2981 // SecurityInterstitialIDNTest implementation
2982 SecurityInterstitialPage* CreateInterstitial( 2982 SecurityInterstitialPage* CreateInterstitial(
2983 content::WebContents* contents, 2983 content::WebContents* contents,
2984 const GURL& request_url) const override { 2984 const GURL& request_url) const override {
2985 net::SSLInfo ssl_info; 2985 net::SSLInfo ssl_info;
2986 ssl_info.cert = new net::X509Certificate( 2986 ssl_info.cert =
2987 request_url.host(), "CA", base::Time::Max(), base::Time::Max()); 2987 net::ImportCertFromFile(net::GetTestCertsDirectory(), "ok_cert.pem");
2988 return new SSLBlockingPage( 2988 return new SSLBlockingPage(
2989 contents, net::ERR_CERT_CONTAINS_ERRORS, ssl_info, request_url, 0, 2989 contents, net::ERR_CERT_CONTAINS_ERRORS, ssl_info, request_url, 0,
2990 base::Time::NowFromSystemTime(), nullptr, base::Callback<void(bool)>()); 2990 base::Time::NowFromSystemTime(), nullptr, base::Callback<void(bool)>());
2991 } 2991 }
2992 }; 2992 };
2993 2993
2994 IN_PROC_BROWSER_TEST_F(SSLBlockingPageIDNTest, SSLBlockingPageDecodesIDN) { 2994 IN_PROC_BROWSER_TEST_F(SSLBlockingPageIDNTest, SSLBlockingPageDecodesIDN) {
2995 EXPECT_TRUE(VerifyIDNDecoded()); 2995 EXPECT_TRUE(VerifyIDNDecoded());
2996 } 2996 }
2997 2997
(...skipping 18 matching lines...) Expand all
3016 3016
3017 // Visit a page over https that contains a frame with a redirect. 3017 // Visit a page over https that contains a frame with a redirect.
3018 3018
3019 // XMLHttpRequest insecure content in synchronous mode. 3019 // XMLHttpRequest insecure content in synchronous mode.
3020 3020
3021 // XMLHttpRequest insecure content in asynchronous mode. 3021 // XMLHttpRequest insecure content in asynchronous mode.
3022 3022
3023 // XMLHttpRequest over bad ssl in synchronous mode. 3023 // XMLHttpRequest over bad ssl in synchronous mode.
3024 3024
3025 // XMLHttpRequest over OK ssl in synchronous mode. 3025 // XMLHttpRequest over OK ssl in synchronous mode.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698