OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 5 #ifndef CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
6 #define CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 6 #define CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
7 | 7 |
8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 100 } |
101 | 101 |
102 TestingProfile* profile() const { return profile_; } | 102 TestingProfile* profile() const { return profile_; } |
103 | 103 |
104 TestingProfile* GetProfile() { return profile_; } | 104 TestingProfile* GetProfile() { return profile_; } |
105 | 105 |
106 BrowserWindow* release_browser_window() WARN_UNUSED_RESULT { | 106 BrowserWindow* release_browser_window() WARN_UNUSED_RESULT { |
107 return window_.release(); | 107 return window_.release(); |
108 } | 108 } |
109 | 109 |
| 110 #if defined(OS_CHROMEOS) |
| 111 ash::test::AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } |
| 112 #endif |
| 113 |
110 // The context to help determine desktop type when creating new Widgets. | 114 // The context to help determine desktop type when creating new Widgets. |
111 gfx::NativeWindow GetContext(); | 115 gfx::NativeWindow GetContext(); |
112 | 116 |
113 // Adds a tab to |browser| with the given URL and commits the load. | 117 // Adds a tab to |browser| with the given URL and commits the load. |
114 // This is a convenience function. The new tab will be added at index 0. | 118 // This is a convenience function. The new tab will be added at index 0. |
115 void AddTab(Browser* browser, const GURL& url); | 119 void AddTab(Browser* browser, const GURL& url); |
116 | 120 |
117 // Commits the pending load on the given controller. It will keep the | 121 // Commits the pending load on the given controller. It will keep the |
118 // URL of the pending load. If there is no pending load, this does nothing. | 122 // URL of the pending load. If there is no pending load, this does nothing. |
119 void CommitPendingLoad(content::NavigationController* controller); | 123 void CommitPendingLoad(content::NavigationController* controller); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // The type of browser to create (tabbed or popup). | 200 // The type of browser to create (tabbed or popup). |
197 Browser::Type browser_type_; | 201 Browser::Type browser_type_; |
198 | 202 |
199 // Whether the browser is part of a hosted app. | 203 // Whether the browser is part of a hosted app. |
200 bool hosted_app_; | 204 bool hosted_app_; |
201 | 205 |
202 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); | 206 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); |
203 }; | 207 }; |
204 | 208 |
205 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 209 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
OLD | NEW |