summaryrefslogtreecommitdiffstats
path: root/chrome/test/test_browser_window.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/test_browser_window.h')
-rw-r--r--chrome/test/test_browser_window.h10
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);