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/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // given URL with the default parameters and the commits the load with a page | 115 // given URL with the default parameters and the commits the load with a page |
116 // ID one larger than any seen. This emulates what happens on a new | 116 // ID one larger than any seen. This emulates what happens on a new |
117 // navigation. | 117 // navigation. |
118 void NavigateAndCommit(content::NavigationController* controller, | 118 void NavigateAndCommit(content::NavigationController* controller, |
119 const GURL& url); | 119 const GURL& url); |
120 | 120 |
121 // Navigates the current tab. This is a wrapper around NavigateAndCommit. | 121 // Navigates the current tab. This is a wrapper around NavigateAndCommit. |
122 void NavigateAndCommitActiveTab(const GURL& url); | 122 void NavigateAndCommitActiveTab(const GURL& url); |
123 | 123 |
124 // Set the |title| of the current tab. | 124 // Set the |title| of the current tab. |
125 void NavigateAndCommitActiveTabWithTitle( | 125 void NavigateAndCommitActiveTabWithTitle(Browser* browser, |
126 Browser* browser, | 126 const GURL& url, |
127 const GURL& url, | 127 const base::string16& title); |
128 const string16& title); | |
129 | 128 |
130 // Destroys the browser, window, and profile created by this class. This is | 129 // Destroys the browser, window, and profile created by this class. This is |
131 // invoked from the destructor. | 130 // invoked from the destructor. |
132 void DestroyBrowserAndProfile(); | 131 void DestroyBrowserAndProfile(); |
133 | 132 |
134 // Creates the profile used by this test. The caller owns the return value. | 133 // Creates the profile used by this test. The caller owns the return value. |
135 virtual TestingProfile* CreateProfile(); | 134 virtual TestingProfile* CreateProfile(); |
136 | 135 |
137 // Destroys the profile which was created through |CreateProfile|. | 136 // Destroys the profile which was created through |CreateProfile|. |
138 virtual void DestroyProfile(TestingProfile* profile); | 137 virtual void DestroyProfile(TestingProfile* profile); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 ui::ScopedOleInitializer ole_initializer_; | 179 ui::ScopedOleInitializer ole_initializer_; |
181 #endif | 180 #endif |
182 | 181 |
183 // The desktop to create the initial window on. | 182 // The desktop to create the initial window on. |
184 chrome::HostDesktopType host_desktop_type_; | 183 chrome::HostDesktopType host_desktop_type_; |
185 | 184 |
186 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); | 185 DISALLOW_COPY_AND_ASSIGN(BrowserWithTestWindowTest); |
187 }; | 186 }; |
188 | 187 |
189 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ | 188 #endif // CHROME_TEST_BASE_BROWSER_WITH_TEST_WINDOW_TEST_H_ |
OLD | NEW |