From d4a52ab018e1014685fa698859c678eefe64d687 Mon Sep 17 00:00:00 2001 From: "tim@chromium.org" Date: Sat, 27 Jun 2009 19:55:54 +0000 Subject: 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 --- chrome/test/browser_with_test_window_test.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. -- cgit v1.1