| 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 25 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 #elif defined(TOOLKIT_VIEWS) | 38 #elif defined(TOOLKIT_VIEWS) |
| 39 namespace views { | 39 namespace views { |
| 40 class ScopedViewsTestHelper; | 40 class ScopedViewsTestHelper; |
| 41 } | 41 } |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 namespace content { | 44 namespace content { |
| 45 class NavigationController; | 45 class NavigationController; |
| 46 class WebContents; | |
| 47 } | 46 } |
| 48 | 47 |
| 49 // Base class for browser based unit tests. BrowserWithTestWindowTest creates a | 48 // Base class for browser based unit tests. BrowserWithTestWindowTest creates a |
| 50 // Browser with a TestingProfile and TestBrowserWindow. To add a tab use | 49 // Browser with a TestingProfile and TestBrowserWindow. To add a tab use |
| 51 // AddTab. For example, the following adds a tab and navigates to | 50 // AddTab. For example, the following adds a tab and navigates to |
| 52 // two URLs that target the TestWebContents: | 51 // two URLs that target the TestWebContents: |
| 53 // | 52 // |
| 54 // // Add a new tab and navigate it. This will be at index 0. | 53 // // Add a new tab and navigate it. This will be at index 0. |
| 55 // AddTab(browser(), GURL("http://foo/1")); | 54 // AddTab(browser(), GURL("http://foo/1")); |
| 56 // NavigationController* controller = | 55 // NavigationController* controller = |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // The type of browser to create (tabbed or popup). | 184 // The type of browser to create (tabbed or popup). |
| 186 Browser::Type browser_type_; | 185 Browser::Type browser_type_; |
| 187 | 186 |
| 188 // Whether the browser is part of a hosted app. | 187 // Whether the browser is part of a hosted app. |
| 189 bool hosted_app_; | 188 bool hosted_app_; |
| 190 | 189 |
| 191 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); | 190 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); |
| 192 }; | 191 }; |
| 193 | 192 |
| 194 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 193 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
| OLD | NEW |