| 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_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 <vector> |
| 10 |
| 9 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
| 10 #include "chrome/browser/ui/browser.h" | |
| 11 #include "chrome/test/test_location_bar.h" | 12 #include "chrome/test/test_location_bar.h" |
| 12 | 13 |
| 13 // An implementation of BrowserWindow used for testing. TestBrowserWindow only | 14 // An implementation of BrowserWindow used for testing. TestBrowserWindow only |
| 14 // contains a valid LocationBar, all other getters return NULL. | 15 // contains a valid LocationBar, all other getters return NULL. |
| 15 // See BrowserWithTestWindowTest for an example of using this class. | 16 // See BrowserWithTestWindowTest for an example of using this class. |
| 16 class TestBrowserWindow : public BrowserWindow { | 17 class TestBrowserWindow : public BrowserWindow { |
| 17 public: | 18 public: |
| 18 explicit TestBrowserWindow(Browser* browser) {} | 19 explicit TestBrowserWindow(Browser* browser) {} |
| 19 virtual ~TestBrowserWindow() {} | 20 virtual ~TestBrowserWindow() {} |
| 20 | 21 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 protected: | 123 protected: |
| 123 virtual void DestroyBrowser() {} | 124 virtual void DestroyBrowser() {} |
| 124 | 125 |
| 125 private: | 126 private: |
| 126 TestLocationBar location_bar_; | 127 TestLocationBar location_bar_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); | 129 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ | 132 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ |
| OLD | NEW |