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

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

Issue 449043002: [DevTools] Make DevTools clients talk directly to DevToolsAgentHost instead of using DevToolsManage… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed DetachAllClients Created 6 years, 4 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 | Annotate | Revision Log
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/tabs/tab_strip_model.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
11 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
12 #include "chrome/test/base/ui_test_utils.h" 12 #include "chrome/test/base/ui_test_utils.h"
13 #include "content/public/browser/devtools_manager.h"
14 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
15 14
16 class InterstitialUITest : public InProcessBrowserTest { 15 class InterstitialUITest : public InProcessBrowserTest {
17 public: 16 public:
18 InterstitialUITest() {} 17 InterstitialUITest() {}
19 virtual ~InterstitialUITest() {} 18 virtual ~InterstitialUITest() {}
20 19
21 protected: 20 protected:
22 void TestInterstitial(GURL url, const std::string& page_title) { 21 void TestInterstitial(GURL url, const std::string& page_title) {
23 ui_test_utils::NavigateToURL(browser(), url); 22 ui_test_utils::NavigateToURL(browser(), url);
(...skipping 26 matching lines...) Expand all
50 TestInterstitial( 49 TestInterstitial(
51 GURL("chrome://interstitials/safebrowsing?type=phishing"), 50 GURL("chrome://interstitials/safebrowsing?type=phishing"),
52 "Security error"); 51 "Security error");
53 TestInterstitial( 52 TestInterstitial(
54 GURL("chrome://interstitials/safebrowsing?type=clientside_malware"), 53 GURL("chrome://interstitials/safebrowsing?type=clientside_malware"),
55 "Security error"); 54 "Security error");
56 TestInterstitial( 55 TestInterstitial(
57 GURL("chrome://interstitials/safebrowsing?type=clientside_phishing"), 56 GURL("chrome://interstitials/safebrowsing?type=clientside_phishing"),
58 "Security error"); 57 "Security error");
59 } 58 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.cc ('k') | content/browser/devtools/devtools_agent_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698