Chromium Code Reviews

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

Issue 4724004: Group commandline settings in UI test and in process browser test. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/test/in_process_browser_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 405 matching lines...)
416 // complex theme? 416 // complex theme?
417 FilePath websocket_pid_file_; // PID file for websocket server. 417 FilePath websocket_pid_file_; // PID file for websocket server.
418 ShutdownType shutdown_type_; // The method for shutting down 418 ShutdownType shutdown_type_; // The method for shutting down
419 // the browser. Used in ShutdownTest. 419 // the browser. Used in ShutdownTest.
420 420
421 private: 421 private:
422 bool LaunchBrowserHelper(const CommandLine& arguments, 422 bool LaunchBrowserHelper(const CommandLine& arguments,
423 bool wait, 423 bool wait,
424 base::ProcessHandle* process); 424 base::ProcessHandle* process);
425 425
426 // Prepare command line that will be used to launch the child browser process
427 // with an UI test.
428 void PrepareTestCommandline(CommandLine* arguments);
429
426 // We want to have a current history database when we start the browser so 430 // We want to have a current history database when we start the browser so
427 // things like the NTP will have thumbnails. This method updates the dates 431 // things like the NTP will have thumbnails. This method updates the dates
428 // in the history to be more recent. 432 // in the history to be more recent.
429 void UpdateHistoryDates(); 433 void UpdateHistoryDates();
430 434
431 base::Time test_start_time_; // Time the test was started 435 base::Time test_start_time_; // Time the test was started
432 // (so we can check for new crash dumps) 436 // (so we can check for new crash dumps)
433 static bool no_sandbox_; 437 static bool no_sandbox_;
434 static bool safe_plugins_; 438 static bool safe_plugins_;
435 static bool full_memory_dump_; // If true, write full memory dump 439 static bool full_memory_dump_; // If true, write full memory dump
(...skipping 139 matching lines...)
575 #ifdef UNIT_TEST 579 #ifdef UNIT_TEST
576 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); 580 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr);
577 581
578 template<typename T> 582 template<typename T>
579 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { 583 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
580 return out << ptr.get(); 584 return out << ptr.get();
581 } 585 }
582 #endif // UNIT_TEST 586 #endif // UNIT_TEST
583 587
584 #endif // CHROME_TEST_UI_UI_TEST_H_ 588 #endif // CHROME_TEST_UI_UI_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/in_process_browser_test.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine