OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BASE_TEST_BROWSER_WINDOW_H_ |
6 #define CHROME_TEST_TEST_BROWSER_WINDOW_H_ | 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "chrome/browser/ui/browser_window.h" | 12 #include "chrome/browser/ui/browser_window.h" |
13 #include "chrome/test/test_location_bar.h" | 13 #include "chrome/test/base/test_location_bar.h" |
14 | 14 |
15 // An implementation of BrowserWindow used for testing. TestBrowserWindow only | 15 // An implementation of BrowserWindow used for testing. TestBrowserWindow only |
16 // contains a valid LocationBar, all other getters return NULL. | 16 // contains a valid LocationBar, all other getters return NULL. |
17 // See BrowserWithTestWindowTest for an example of using this class. | 17 // See BrowserWithTestWindowTest for an example of using this class. |
18 class TestBrowserWindow : public BrowserWindow { | 18 class TestBrowserWindow : public BrowserWindow { |
19 public: | 19 public: |
20 explicit TestBrowserWindow(Browser* browser); | 20 explicit TestBrowserWindow(Browser* browser); |
21 virtual ~TestBrowserWindow(); | 21 virtual ~TestBrowserWindow(); |
22 | 22 |
23 // BrowserWindow: | 23 // BrowserWindow: |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 protected: | 118 protected: |
119 virtual void DestroyBrowser() OVERRIDE {} | 119 virtual void DestroyBrowser() OVERRIDE {} |
120 | 120 |
121 private: | 121 private: |
122 TestLocationBar location_bar_; | 122 TestLocationBar location_bar_; |
123 | 123 |
124 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); | 124 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |
125 }; | 125 }; |
126 | 126 |
127 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ | 127 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
OLD | NEW |