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_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/browser/ui/browser_navigator_params.h" |
11 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
12 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
13 | 14 |
14 class Profile; | 15 class Profile; |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class CommandLine; | 18 class CommandLine; |
18 } | 19 } |
19 | 20 |
20 namespace chrome { | |
21 struct NavigateParams; | |
22 } | |
23 | |
24 namespace content { | 21 namespace content { |
25 class WebContents; | 22 class WebContents; |
26 } | 23 } |
27 | 24 |
28 // Browsertest class for testing the browser navigation. It is also a base class | 25 // Browsertest class for testing the browser navigation. It is also a base class |
29 // for the |BrowserGuestModeNavigation| which tests navigation while in guest | 26 // for the |BrowserGuestModeNavigation| which tests navigation while in guest |
30 // mode. | 27 // mode. |
31 class BrowserNavigatorTest : public InProcessBrowserTest, | 28 class BrowserNavigatorTest : public InProcessBrowserTest, |
32 public content::NotificationObserver { | 29 public content::NotificationObserver { |
33 protected: | 30 protected: |
(...skipping 19 matching lines...) Expand all Loading... |
53 | 50 |
54 bool OpenPOSTURLInNewForegroundTabAndGetTitle(const GURL& url, | 51 bool OpenPOSTURLInNewForegroundTabAndGetTitle(const GURL& url, |
55 const std::string& post_data, | 52 const std::string& post_data, |
56 bool is_browser_initiated, | 53 bool is_browser_initiated, |
57 base::string16* title); | 54 base::string16* title); |
58 | 55 |
59 size_t created_tab_contents_count_; | 56 size_t created_tab_contents_count_; |
60 }; | 57 }; |
61 | 58 |
62 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ | 59 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_BROWSERTEST_H_ |
OLD | NEW |