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

Side by Side Diff: chrome/browser/ui/webui/interstitials/interstitial_ui_browsertest.cc

Issue 2957953002: Add pinned cert interstitial to chrome://interstitials (Closed)
Patch Set: Address CL comments Created 3 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/strings/utf_string_conversions.h" 5 #include "base/strings/utf_string_conversions.h"
6 #include "chrome/browser/chrome_notification_types.h" 6 #include "chrome/browser/chrome_notification_types.h"
7 #include "chrome/browser/devtools/devtools_window.h" 7 #include "chrome/browser/devtools/devtools_window.h"
8 #include "chrome/browser/devtools/devtools_window_testing.h" 8 #include "chrome/browser/devtools/devtools_window_testing.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_commands.h" 10 #include "chrome/browser/ui/browser_commands.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 GURL("chrome://interstitials/--invalid--"), 45 GURL("chrome://interstitials/--invalid--"),
46 "Interstitials"); 46 "Interstitials");
47 } 47 }
48 48
49 IN_PROC_BROWSER_TEST_F(InterstitialUITest, SSLInterstitial) { 49 IN_PROC_BROWSER_TEST_F(InterstitialUITest, SSLInterstitial) {
50 TestInterstitial( 50 TestInterstitial(
51 GURL("chrome://interstitials/ssl"), 51 GURL("chrome://interstitials/ssl"),
52 "Privacy error"); 52 "Privacy error");
53 } 53 }
54 54
55 IN_PROC_BROWSER_TEST_F(InterstitialUITest, PinnedCertInterstitial) {
56 TestInterstitial(GURL("chrome://interstitials/ssl?type=hpkp_failure"),
57 "Privacy error");
58 }
59
55 IN_PROC_BROWSER_TEST_F(InterstitialUITest, MalwareInterstitial) { 60 IN_PROC_BROWSER_TEST_F(InterstitialUITest, MalwareInterstitial) {
56 TestInterstitial( 61 TestInterstitial(
57 GURL("chrome://interstitials/safebrowsing?type=malware"), 62 GURL("chrome://interstitials/safebrowsing?type=malware"),
58 "Security error"); 63 "Security error");
59 } 64 }
60 65
61 IN_PROC_BROWSER_TEST_F(InterstitialUITest, PhishingInterstitial) { 66 IN_PROC_BROWSER_TEST_F(InterstitialUITest, PhishingInterstitial) {
62 TestInterstitial( 67 TestInterstitial(
63 GURL("chrome://interstitials/safebrowsing?type=phishing"), 68 GURL("chrome://interstitials/safebrowsing?type=phishing"),
64 "Security error"); 69 "Security error");
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 112
108 // Duplicate the tab and close it. 113 // Duplicate the tab and close it.
109 chrome::DuplicateTab(browser()); 114 chrome::DuplicateTab(browser());
110 EXPECT_NE(current_tab, browser()->tab_strip_model()->active_index()); 115 EXPECT_NE(current_tab, browser()->tab_strip_model()->active_index());
111 chrome::CloseTab(browser()); 116 chrome::CloseTab(browser());
112 EXPECT_EQ(current_tab, browser()->tab_strip_model()->active_index()); 117 EXPECT_EQ(current_tab, browser()->tab_strip_model()->active_index());
113 118
114 // Reloading the page shouldn't cause a crash. 119 // Reloading the page shouldn't cause a crash.
115 chrome::Reload(browser(), WindowOpenDisposition::CURRENT_TAB); 120 chrome::Reload(browser(), WindowOpenDisposition::CURRENT_TAB);
116 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698