| OLD | NEW |
| 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 Loading... |
| 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, SuperfishInterstitial) { |
| 56 TestInterstitial(GURL("chrome://interstitials/superfish-ssl"), |
| 57 "Privacy error"); |
| 58 } |
| 59 |
| 55 IN_PROC_BROWSER_TEST_F(InterstitialUITest, PinnedCertInterstitial) { | 60 IN_PROC_BROWSER_TEST_F(InterstitialUITest, PinnedCertInterstitial) { |
| 56 TestInterstitial(GURL("chrome://interstitials/ssl?type=hpkp_failure"), | 61 TestInterstitial(GURL("chrome://interstitials/ssl?type=hpkp_failure"), |
| 57 "Privacy error"); | 62 "Privacy error"); |
| 58 } | 63 } |
| 59 | 64 |
| 60 IN_PROC_BROWSER_TEST_F(InterstitialUITest, MalwareInterstitial) { | 65 IN_PROC_BROWSER_TEST_F(InterstitialUITest, MalwareInterstitial) { |
| 61 TestInterstitial( | 66 TestInterstitial( |
| 62 GURL("chrome://interstitials/safebrowsing?type=malware"), | 67 GURL("chrome://interstitials/safebrowsing?type=malware"), |
| 63 "Security error"); | 68 "Security error"); |
| 64 } | 69 } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 117 |
| 113 // Duplicate the tab and close it. | 118 // Duplicate the tab and close it. |
| 114 chrome::DuplicateTab(browser()); | 119 chrome::DuplicateTab(browser()); |
| 115 EXPECT_NE(current_tab, browser()->tab_strip_model()->active_index()); | 120 EXPECT_NE(current_tab, browser()->tab_strip_model()->active_index()); |
| 116 chrome::CloseTab(browser()); | 121 chrome::CloseTab(browser()); |
| 117 EXPECT_EQ(current_tab, browser()->tab_strip_model()->active_index()); | 122 EXPECT_EQ(current_tab, browser()->tab_strip_model()->active_index()); |
| 118 | 123 |
| 119 // Reloading the page shouldn't cause a crash. | 124 // Reloading the page shouldn't cause a crash. |
| 120 chrome::Reload(browser(), WindowOpenDisposition::CURRENT_TAB); | 125 chrome::Reload(browser(), WindowOpenDisposition::CURRENT_TAB); |
| 121 } | 126 } |
| OLD | NEW |