diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 21:30:42 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 21:30:42 +0000 |
commit | 69557d3f564076a7708674d4b5d0d98b3978a6d9 (patch) | |
tree | fec3a77afaa2d1c8a863fc8f1e1f0996ed37e6a4 /chrome/test/ui/ui_test.h | |
parent | d76daa7d21b13f714fab6386ad257c2692727f80 (diff) | |
download | chromium_src-69557d3f564076a7708674d4b5d0d98b3978a6d9.zip chromium_src-69557d3f564076a7708674d4b5d0d98b3978a6d9.tar.gz chromium_src-69557d3f564076a7708674d4b5d0d98b3978a6d9.tar.bz2 |
Switch to TimeDelta interfaces in chrome automation test infrastructure.
BUG=108171
Review URL: https://chromiumcodereview.appspot.com/10736064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/ui_test.h')
-rw-r--r-- | chrome/test/ui/ui_test.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/test/ui/ui_test.h b/chrome/test/ui/ui_test.h index 47a3917..a8d252e 100644 --- a/chrome/test/ui/ui_test.h +++ b/chrome/test/ui/ui_test.h @@ -67,7 +67,9 @@ class UITestBase { void ConnectToRunningBrowser(); // Only for pyauto. + base::TimeDelta action_timeout(); int action_timeout_ms(); + void set_action_timeout(base::TimeDelta timeout); void set_action_timeout_ms(int timeout); // Overridable so that derived classes can provide their own ProxyLauncher. @@ -377,7 +379,7 @@ class UITest : public UITestBase, public PlatformTest { const std::string &id, const GURL &url, const std::string& test_complete_cookie, const std::string& expected_cookie_value, - const int wait_time); + const base::TimeDelta wait_time); // Wrapper around EvictFileFromSystemCache to retry 10 times in case of // error. @@ -397,7 +399,7 @@ class UITest : public UITestBase, public PlatformTest { bool WaitUntilJavaScriptCondition(TabProxy* tab, const std::wstring& frame_xpath, const std::wstring& jscript, - int timeout_ms); + base::TimeDelta timeout); // Polls the tab for the cookie_name cookie and returns once one of the // following conditions hold true: @@ -406,7 +408,7 @@ class UITest : public UITestBase, public PlatformTest { // - The timeout value has been exceeded. bool WaitUntilCookieValue(TabProxy* tab, const GURL& url, const char* cookie_name, - int timeout_ms, + base::TimeDelta timeout, const char* expected_value); // Polls the tab for the cookie_name cookie and returns once one of the @@ -417,7 +419,7 @@ class UITest : public UITestBase, public PlatformTest { std::string WaitUntilCookieNonEmpty(TabProxy* tab, const GURL& url, const char* cookie_name, - int timeout_ms); + base::TimeDelta timeout); // Waits until the Find window has become fully visible (if |wait_for_open| is // true) or fully hidden (if |wait_for_open| is false). This function can time |