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

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

Issue 1007007: PyAuto: Flags to forbid cleaning profile dir... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 // This file provides a common base for running UI unit tests, which operate 8 // This file provides a common base for running UI unit tests, which operate
9 // the entire browser application in a separate process for holistic 9 // the entire browser application in a separate process for holistic
10 // functional testing. 10 // functional testing.
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 int action_max_timeout_ms() const { return action_max_timeout_ms_; } 428 int action_max_timeout_ms() const { return action_max_timeout_ms_; }
429 429
430 int sleep_timeout_ms() const { return sleep_timeout_ms_; } 430 int sleep_timeout_ms() const { return sleep_timeout_ms_; }
431 431
432 std::wstring ui_test_name() const { return ui_test_name_; } 432 std::wstring ui_test_name() const { return ui_test_name_; }
433 433
434 void set_ui_test_name(const std::wstring& name) { 434 void set_ui_test_name(const std::wstring& name) {
435 ui_test_name_ = name; 435 ui_test_name_ = name;
436 } 436 }
437 437
438 // Sets clear_profile_. Should be called before launching browser to have
439 // any effect.
440 void set_clear_profile(bool clear_profile) {
441 clear_profile_ = clear_profile;
442 }
443
444 // Sets homepage_. Should be called before launching browser to have
445 // any effect.
446 void set_homepage(const std::wstring& homepage) {
447 homepage_ = homepage;
448 }
449
438 // Count the number of active browser processes launched by this test. 450 // Count the number of active browser processes launched by this test.
439 // The count includes browser sub-processes. 451 // The count includes browser sub-processes.
440 int GetBrowserProcessCount(); 452 int GetBrowserProcessCount();
441 453
442 // Returns a copy of local state preferences. The caller is responsible for 454 // Returns a copy of local state preferences. The caller is responsible for
443 // deleting the returned object. Returns NULL if there is an error. 455 // deleting the returned object. Returns NULL if there is an error.
444 DictionaryValue* GetLocalState(); 456 DictionaryValue* GetLocalState();
445 457
446 // Returns a copy of the default profile preferences. The caller is 458 // Returns a copy of the default profile preferences. The caller is
447 // responsible for deleting the returned object. Returns NULL if there is an 459 // responsible for deleting the returned object. Returns NULL if there is an
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 #ifdef UNIT_TEST 647 #ifdef UNIT_TEST
636 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); 648 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr);
637 649
638 template<typename T> 650 template<typename T>
639 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { 651 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
640 return out << ptr.get(); 652 return out << ptr.get();
641 } 653 }
642 #endif // UNIT_TEST 654 #endif // UNIT_TEST
643 655
644 #endif // CHROME_TEST_UI_UI_TEST_H_ 656 #endif // CHROME_TEST_UI_UI_TEST_H_
OLDNEW
« chrome/test/pyautolib/pyautolib.h ('K') | « chrome/test/pyautolib/pyautolib.i ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698