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

Side by Side Diff: chrome/test/base/browser_with_test_window_test.h

Issue 2804913002: mash: Test ChromeLauncherControllerImpl more like production use. (Closed)
Patch Set: Fix BrowserWindow leak; restore InitLauncherController; cleanup. Created 3 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
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_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ 5 #ifndef CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_
6 #define CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ 6 #define CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 const GURL& url); 120 const GURL& url);
121 121
122 // Navigates the current tab. This is a wrapper around NavigateAndCommit. 122 // Navigates the current tab. This is a wrapper around NavigateAndCommit.
123 void NavigateAndCommitActiveTab(const GURL& url); 123 void NavigateAndCommitActiveTab(const GURL& url);
124 124
125 // Set the |title| of the current tab. 125 // Set the |title| of the current tab.
126 void NavigateAndCommitActiveTabWithTitle(Browser* browser, 126 void NavigateAndCommitActiveTabWithTitle(Browser* browser,
127 const GURL& url, 127 const GURL& url,
128 const base::string16& title); 128 const base::string16& title);
129 129
130 // Destroys the browser, window, and profile created by this class. This is
131 // invoked from the destructor.
132 void DestroyBrowserAndProfile();
133
134 // Creates the profile used by this test. The caller owns the return value. 130 // Creates the profile used by this test. The caller owns the return value.
135 virtual TestingProfile* CreateProfile(); 131 virtual TestingProfile* CreateProfile();
136 132
137 // Destroys the profile which was created through |CreateProfile|. 133 // Destroys the profile which was created through |CreateProfile|.
138 virtual void DestroyProfile(TestingProfile* profile); 134 virtual void DestroyProfile(TestingProfile* profile);
139 135
140 // Creates the BrowserWindow used by this test. The caller owns the return 136 // Creates the BrowserWindow used by this test. The caller owns the return
141 // value. Can return NULL to use the default window created by Browser. 137 // value. Can return NULL to use the default window created by Browser.
142 virtual BrowserWindow* CreateBrowserWindow(); 138 virtual BrowserWindow* CreateBrowserWindow();
143 139
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // The type of browser to create (tabbed or popup). 180 // The type of browser to create (tabbed or popup).
185 Browser::Type browser_type_; 181 Browser::Type browser_type_;
186 182
187 // Whether the browser is part of a hosted app. 183 // Whether the browser is part of a hosted app.
188 bool hosted_app_; 184 bool hosted_app_;
189 185
190 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); 186 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest);
191 }; 187 };
192 188
193 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ 189 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698