diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-16 07:05:52 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-16 07:05:52 +0000 |
commit | c4f8fdcd67231e7786b690be805d9f036ed0f324 (patch) | |
tree | ded960ca991beaff02d51038bc00738d0682f99b /chrome/test/test_browser_window.h | |
parent | 109763bb929004fefa409c342d1c14a78bfe126f (diff) | |
download | chromium_src-c4f8fdcd67231e7786b690be805d9f036ed0f324.zip chromium_src-c4f8fdcd67231e7786b690be805d9f036ed0f324.tar.gz chromium_src-c4f8fdcd67231e7786b690be805d9f036ed0f324.tar.bz2 |
Reverted 29255.
TBR: nick@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/test_browser_window.h')
-rw-r--r-- | chrome/test/test_browser_window.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/test/test_browser_window.h b/chrome/test/test_browser_window.h index d785415..8aa657d 100644 --- a/chrome/test/test_browser_window.h +++ b/chrome/test/test_browser_window.h @@ -7,14 +7,18 @@ #include "chrome/browser/browser.h" #include "chrome/browser/browser_window.h" +#include "chrome/browser/views/tabs/tab_strip.h" #include "chrome/test/test_location_bar.h" // An implementation of BrowserWindow used for testing. TestBrowserWindow only -// contains a valid LocationBar, all other getters return NULL. +// contains a valid TabStrip, all other getters return NULL. // See BrowserWithTestWindowTest for an example of using this class. class TestBrowserWindow : public BrowserWindow { public: - explicit TestBrowserWindow(Browser* browser) {} + explicit TestBrowserWindow(Browser* browser) + : tab_strip_(browser->tabstrip_model()) { + tab_strip_.InitTabStripButtons(); + } virtual ~TestBrowserWindow() {} virtual void Init() {} @@ -87,6 +91,8 @@ class TestBrowserWindow : public BrowserWindow { virtual void DestroyBrowser() {} private: + TabStrip tab_strip_; + TestLocationBar location_bar_; DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |