Chromium Code Reviews| 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_UI_UI_TEST_H_ | 5 #ifndef CHROME_TEST_UI_UI_TEST_H_ |
| 6 #define CHROME_TEST_UI_UI_TEST_H_ | 6 #define CHROME_TEST_UI_UI_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file provides a common base for running UI unit tests, which operate | 9 // This file provides a common base for running UI unit tests, which operate |
| 10 // the entire browser application in a separate process for holistic | 10 // the entire browser application in a separate process for holistic |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 // Closes the specified browser. Returns true if the browser was closed. | 159 // Closes the specified browser. Returns true if the browser was closed. |
| 160 // This call is blocking. |application_closed| is set to true if this was | 160 // This call is blocking. |application_closed| is set to true if this was |
| 161 // the last browser window (and therefore as a result of it closing the | 161 // the last browser window (and therefore as a result of it closing the |
| 162 // browser process terminated). Note that in that case this method returns | 162 // browser process terminated). Note that in that case this method returns |
| 163 // after the browser process has terminated. | 163 // after the browser process has terminated. |
| 164 bool CloseBrowser(BrowserProxy* browser, bool* application_closed) const; | 164 bool CloseBrowser(BrowserProxy* browser, bool* application_closed) const; |
| 165 | 165 |
| 166 // Gets the directory for the currently active profile in the browser. | 166 // Gets the directory for the currently active profile in the browser. |
| 167 FilePath GetDownloadDirectory(); | 167 FilePath GetDownloadDirectory(); |
| 168 | 168 |
| 169 // Gets the executable file path of the chrome browser process. | |
|
cmp
2011/06/22 22:41:58
chrome -> Chrome
| |
| 170 const FilePath::CharType* GetExecutablePath(); | |
| 171 | |
| 169 // Returns the directory name where the "typical" user data is that we use | 172 // Returns the directory name where the "typical" user data is that we use |
| 170 // for testing. | 173 // for testing. |
| 171 static FilePath ComputeTypicalUserDataSource( | 174 static FilePath ComputeTypicalUserDataSource( |
| 172 ProxyLauncher::ProfileType profile_type); | 175 ProxyLauncher::ProfileType profile_type); |
| 173 | 176 |
| 174 // Return the user data directory being used by the browser instance in | 177 // Return the user data directory being used by the browser instance in |
| 175 // UITest::SetUp(). | 178 // UITest::SetUp(). |
| 176 FilePath user_data_dir() const { | 179 FilePath user_data_dir() const { |
| 177 return launcher_->user_data_dir(); | 180 return launcher_->user_data_dir(); |
| 178 } | 181 } |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 462 #ifdef UNIT_TEST | 465 #ifdef UNIT_TEST |
| 463 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); | 466 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); |
| 464 | 467 |
| 465 template<typename T> | 468 template<typename T> |
| 466 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { | 469 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { |
| 467 return out << ptr.get(); | 470 return out << ptr.get(); |
| 468 } | 471 } |
| 469 #endif // UNIT_TEST | 472 #endif // UNIT_TEST |
| 470 | 473 |
| 471 #endif // CHROME_TEST_UI_UI_TEST_H_ | 474 #endif // CHROME_TEST_UI_UI_TEST_H_ |
| OLD | NEW |