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

Side by Side Diff: chrome/browser/ssl/ssl_browser_tests.cc

Issue 2303413002: Simplify security_interstitials::ControllerClient and other related classes (Closed)
Patch Set: namespaces Created 4 years, 3 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 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after
3057 3057
3058 class SSLBlockingPageIDNTest : public SecurityInterstitialIDNTest { 3058 class SSLBlockingPageIDNTest : public SecurityInterstitialIDNTest {
3059 protected: 3059 protected:
3060 // SecurityInterstitialIDNTest implementation 3060 // SecurityInterstitialIDNTest implementation
3061 SecurityInterstitialPage* CreateInterstitial( 3061 SecurityInterstitialPage* CreateInterstitial(
3062 content::WebContents* contents, 3062 content::WebContents* contents,
3063 const GURL& request_url) const override { 3063 const GURL& request_url) const override {
3064 net::SSLInfo ssl_info; 3064 net::SSLInfo ssl_info;
3065 ssl_info.cert = 3065 ssl_info.cert =
3066 net::ImportCertFromFile(net::GetTestCertsDirectory(), "ok_cert.pem"); 3066 net::ImportCertFromFile(net::GetTestCertsDirectory(), "ok_cert.pem");
3067 return new SSLBlockingPage( 3067 return SSLBlockingPage::Create(
3068 contents, net::ERR_CERT_CONTAINS_ERRORS, ssl_info, request_url, 0, 3068 contents, net::ERR_CERT_CONTAINS_ERRORS, ssl_info, request_url, 0,
3069 base::Time::NowFromSystemTime(), nullptr, 3069 base::Time::NowFromSystemTime(), nullptr,
3070 base::Callback<void(content::CertificateRequestResultType)>()); 3070 base::Callback<void(content::CertificateRequestResultType)>());
3071 } 3071 }
3072 }; 3072 };
3073 3073
3074 IN_PROC_BROWSER_TEST_F(SSLBlockingPageIDNTest, SSLBlockingPageDecodesIDN) { 3074 IN_PROC_BROWSER_TEST_F(SSLBlockingPageIDNTest, SSLBlockingPageDecodesIDN) {
3075 EXPECT_TRUE(VerifyIDNDecoded()); 3075 EXPECT_TRUE(VerifyIDNDecoded());
3076 } 3076 }
3077 3077
(...skipping 18 matching lines...) Expand all
3096 3096
3097 // Visit a page over https that contains a frame with a redirect. 3097 // Visit a page over https that contains a frame with a redirect.
3098 3098
3099 // XMLHttpRequest insecure content in synchronous mode. 3099 // XMLHttpRequest insecure content in synchronous mode.
3100 3100
3101 // XMLHttpRequest insecure content in asynchronous mode. 3101 // XMLHttpRequest insecure content in asynchronous mode.
3102 3102
3103 // XMLHttpRequest over bad ssl in synchronous mode. 3103 // XMLHttpRequest over bad ssl in synchronous mode.
3104 3104
3105 // XMLHttpRequest over OK ssl in synchronous mode. 3105 // XMLHttpRequest over OK ssl in synchronous mode.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698