OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TEST_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_TEST_TEST_BROWSER_WINDOW_H_ |
6 #define CHROME_TEST_TEST_BROWSER_WINDOW_H_ | 6 #define CHROME_TEST_TEST_BROWSER_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/browser.h" | |
10 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
| 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/test/test_location_bar.h" | 11 #include "chrome/test/test_location_bar.h" |
12 | 12 |
13 // An implementation of BrowserWindow used for testing. TestBrowserWindow only | 13 // An implementation of BrowserWindow used for testing. TestBrowserWindow only |
14 // contains a valid LocationBar, all other getters return NULL. | 14 // contains a valid LocationBar, all other getters return NULL. |
15 // See BrowserWithTestWindowTest for an example of using this class. | 15 // See BrowserWithTestWindowTest for an example of using this class. |
16 class TestBrowserWindow : public BrowserWindow { | 16 class TestBrowserWindow : public BrowserWindow { |
17 public: | 17 public: |
18 explicit TestBrowserWindow(Browser* browser) {} | 18 explicit TestBrowserWindow(Browser* browser) {} |
19 virtual ~TestBrowserWindow() {} | 19 virtual ~TestBrowserWindow() {} |
20 | 20 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 protected: | 111 protected: |
112 virtual void DestroyBrowser() {} | 112 virtual void DestroyBrowser() {} |
113 | 113 |
114 private: | 114 private: |
115 TestLocationBar location_bar_; | 115 TestLocationBar location_bar_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); | 117 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |
118 }; | 118 }; |
119 | 119 |
120 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ | 120 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ |
OLD | NEW |