summaryrefslogtreecommitdiffstats
path: root/chrome/test/browser_with_test_window_test.h
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-27 19:55:54 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-27 19:55:54 +0000
commitd4a52ab018e1014685fa698859c678eefe64d687 (patch)
treea793694bbfd7a5bad371192da6109f6c5882cf17 /chrome/test/browser_with_test_window_test.h
parent37a955a80fe1ebb08570dda4eba2e30861e9256d (diff)
downloadchromium_src-d4a52ab018e1014685fa698859c678eefe64d687.zip
chromium_src-d4a52ab018e1014685fa698859c678eefe64d687.tar.gz
chromium_src-d4a52ab018e1014685fa698859c678eefe64d687.tar.bz2
Make members protected so they can be set in an overloaded
SetUp method. Review URL: http://codereview.chromium.org/149039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/browser_with_test_window_test.h')
-rw-r--r--chrome/test/browser_with_test_window_test.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/test/browser_with_test_window_test.h b/chrome/test/browser_with_test_window_test.h
index 7331872..2b8502c 100644
--- a/chrome/test/browser_with_test_window_test.h
+++ b/chrome/test/browser_with_test_window_test.h
@@ -50,9 +50,21 @@ class BrowserWithTestWindowTest : public testing::Test {
TestRenderViewHost* TestRenderViewHostForTab(TabContents* tab_contents);
protected:
+
+ TestBrowserWindow* window() const { return window_.get(); }
+ void set_window(TestBrowserWindow* window) {
+ window_.reset(window);
+ }
+
Browser* browser() const { return browser_.get(); }
+ void set_browser(Browser* browser) {
+ browser_.reset(browser);
+ }
TestingProfile* profile() const { return profile_.get(); }
+ void set_profile(TestingProfile* profile) {
+ profile_.reset(profile);
+ }
// Adds a tab to |browser| with the given URL and commits the load.
// This is a convenience function. The new tab will be added at index 0.