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

Unified Diff: chrome/test/pyautolib/pyautolib.h

Issue 10736064: Switch to TimeDelta interfaces in chrome automation test infrastructure. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 | « chrome/test/ppapi/ppapi_test.cc ('k') | chrome/test/reliability/automated_ui_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyautolib.h
diff --git a/chrome/test/pyautolib/pyautolib.h b/chrome/test/pyautolib/pyautolib.h
index 402ba6766c7fbf60983c655379a0ca0e798bfb9a..e4db4621abe6c2f36107929ce2a1026e2299134d 100644
--- a/chrome/test/pyautolib/pyautolib.h
+++ b/chrome/test/pyautolib/pyautolib.h
@@ -196,12 +196,20 @@ class PyUITestBase : public UITestBase {
std::string GetCookie(const GURL& cookie_url, int window_index = 0,
int tab_index = 0);
+ base::TimeDelta action_max_timeout() const {
+ return TestTimeouts::action_max_timeout();
+ }
+
int action_max_timeout_ms() const {
- return TestTimeouts::action_max_timeout_ms();
+ return action_max_timeout().InMilliseconds();
+ }
+
+ base::TimeDelta large_test_timeout() const {
+ return TestTimeouts::large_test_timeout();
}
int large_test_timeout_ms() const {
- return TestTimeouts::large_test_timeout_ms();
+ return large_test_timeout().InMilliseconds();
}
protected:
« no previous file with comments | « chrome/test/ppapi/ppapi_test.cc ('k') | chrome/test/reliability/automated_ui_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698