Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: chrome/test/ui/ui_test.h

Issue 7185023: Support Chromium-branded builds and cleanup reference build usage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/ui_perf_test.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
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
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_
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_perf_test.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698