diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-07 05:49:11 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-07 05:49:11 +0000 |
commit | f5aa79970b40b9c3d873c833022779be96c16444 (patch) | |
tree | c8334f69227c6c1890b90743321f1fe4a00a5441 /chrome/test/ui/ui_test.cc | |
parent | 5e4e3aa3099584e473a72b668ffa9c3119ef9a5b (diff) | |
download | chromium_src-f5aa79970b40b9c3d873c833022779be96c16444.zip chromium_src-f5aa79970b40b9c3d873c833022779be96c16444.tar.gz chromium_src-f5aa79970b40b9c3d873c833022779be96c16444.tar.bz2 |
Add new downloads tests
testBigZip -- test downloads for a 1 GB file, from Sunand
This required methods to temporarily increase automation timeout, since it might not be possible to download 1 GB file in the default 25 secs.
testDownloadsPersistence -- verify that download history persists browser restart, from Srikanth
Review URL: http://codereview.chromium.org/3046030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/ui_test.cc')
-rw-r--r-- | chrome/test/ui/ui_test.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index 59f25bb..fc7eb42 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -210,6 +210,17 @@ void UITestBase::TearDown() { EXPECT_EQ(expected_crashes_, actual_crashes) << error_msg; } +void UITestBase::set_command_execution_timeout_ms(int timeout) { + if (server_.get()) { + // automation channel already created. Set its timeout for use by + // subsequent automation calls. + server_->set_command_execution_timeout_ms(timeout); + } + command_execution_timeout_ms_ = timeout; + LOG(INFO) << "Automation command execution timeout set to " + << timeout << " milli secs."; +} + // Pick up the various test time out values from the command line. void UITestBase::InitializeTimeouts() { const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |