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

Unified Diff: chrome/test/reliability/page_load_test.cc

Issue 300014: Reliablity test... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/reliability/page_load_test.cc
===================================================================
--- chrome/test/reliability/page_load_test.cc (revision 29484)
+++ chrome/test/reliability/page_load_test.cc (working copy)
@@ -31,6 +31,7 @@
// --timeout=millisecond: time out as specified in millisecond during each
// page load.
// --nopagedown: won't simulate page down key presses after page load.
+// --noclearprofile: do not clear profile dir before firing up each time.
// --savedebuglog: save Chrome, V8, and test debug log for each page loaded.
#include <fstream>
@@ -79,6 +80,7 @@
const char kLogFileSwitch[] = "logfile";
const char kTimeoutSwitch[] = "timeout";
const char kNoPageDownSwitch[] = "nopagedown";
+const char kNoClearProfileSwitch[] = "noclearprofile";
const char kSaveDebugLogSwitch[] = "savedebuglog";
const char kDefaultServerUrl[] = "http://urllist.com";
@@ -105,6 +107,7 @@
bool g_continuous_load = false;
bool g_browser_existing = false;
bool g_page_down = true;
+bool g_clear_profile = true;
std::string g_end_url;
FilePath g_log_file_path;
int g_timeout_ms = -1;
@@ -445,6 +448,7 @@
virtual void SetUp() {
UITest::SetUp();
g_browser_existing = true;
+ clear_profile_ = g_clear_profile;
// Initialize crash_dumps_dir_path_.
PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dumps_dir_path_);
@@ -709,6 +713,9 @@
if (parsed_command_line.HasSwitch(kNoPageDownSwitch))
g_page_down = false;
+ if (parsed_command_line.HasSwitch(kNoClearProfileSwitch))
+ g_clear_profile = false;
+
if (parsed_command_line.HasSwitch(kSaveDebugLogSwitch)) {
g_save_debug_log = true;
g_chrome_log_path = logging::GetLogFileName();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698