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

Side by Side Diff: chrome/browser/ui/browser_navigator_browsertest.h

Issue 187443008: Elim Browser::AppType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and add non trusted type test Created 6 years, 8 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 (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 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ 6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 13 matching lines...) Expand all
24 // Browsertest class for testing the browser navigation. It is also a base class 24 // Browsertest class for testing the browser navigation. It is also a base class
25 // for the |BrowserGuestModeNavigation| which tests navigation while in guest 25 // for the |BrowserGuestModeNavigation| which tests navigation while in guest
26 // mode. 26 // mode.
27 class BrowserNavigatorTest : public InProcessBrowserTest, 27 class BrowserNavigatorTest : public InProcessBrowserTest,
28 public content::NotificationObserver { 28 public content::NotificationObserver {
29 protected: 29 protected:
30 chrome::NavigateParams MakeNavigateParams() const; 30 chrome::NavigateParams MakeNavigateParams() const;
31 chrome::NavigateParams MakeNavigateParams(Browser* browser) const; 31 chrome::NavigateParams MakeNavigateParams(Browser* browser) const;
32 32
33 Browser* CreateEmptyBrowserForType(Browser::Type type, Profile* profile); 33 Browser* CreateEmptyBrowserForType(Browser::Type type, Profile* profile);
34 Browser* CreateEmptyBrowserForApp(Browser::Type type, Profile* profile); 34 Browser* CreateEmptyBrowserForApp(Profile* profile);
35 35
36 content::WebContents* CreateWebContents(); 36 content::WebContents* CreateWebContents();
37 37
38 void RunSuppressTest(WindowOpenDisposition disposition); 38 void RunSuppressTest(WindowOpenDisposition disposition);
39 void RunUseNonIncognitoWindowTest(const GURL& url); 39 void RunUseNonIncognitoWindowTest(const GURL& url);
40 void RunDoNothingIfIncognitoIsForcedTest(const GURL& url); 40 void RunDoNothingIfIncognitoIsForcedTest(const GURL& url);
41 41
42 // content::NotificationObserver: 42 // content::NotificationObserver:
43 virtual void Observe(int type, 43 virtual void Observe(int type,
44 const content::NotificationSource& source, 44 const content::NotificationSource& source,
45 const content::NotificationDetails& details) OVERRIDE; 45 const content::NotificationDetails& details) OVERRIDE;
46 46
47 bool OpenPOSTURLInNewForegroundTabAndGetTitle(const GURL& url, 47 bool OpenPOSTURLInNewForegroundTabAndGetTitle(const GURL& url,
48 const std::string& post_data, 48 const std::string& post_data,
49 bool is_browser_initiated, 49 bool is_browser_initiated,
50 base::string16* title); 50 base::string16* title);
51 51
52 size_t created_tab_contents_count_; 52 size_t created_tab_contents_count_;
53 }; 53 };
54 54
55 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ 55 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/browser_navigator_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698