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

Unified Diff: chrome/browser/media_uitest.cc

Issue 9185026: Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Explicitly include base/time.h in header file. Created 8 years, 11 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/browser/intranet_redirect_detector.cc ('k') | chrome/browser/omnibox_search_hint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_uitest.cc
diff --git a/chrome/browser/media_uitest.cc b/chrome/browser/media_uitest.cc
index 91732ce978cf61e81ee037e7da89e1d14c8019f5..19720ace32cb4e77deddc5721aae28d1c6acc85e 100644
--- a/chrome/browser/media_uitest.cc
+++ b/chrome/browser/media_uitest.cc
@@ -31,15 +31,16 @@ class MediaTest : public UITest {
const std::wstring kPlaying = L"PLAYING";
const std::wstring kFailed = L"FAILED";
const std::wstring kError = L"ERROR";
- const int kSleepIntervalMs = 250;
+ const base::TimeDelta kSleepInterval =
+ base::TimeDelta::FromMilliseconds(250);
const int kNumIntervals =
- TestTimeouts::action_timeout_ms() / kSleepIntervalMs;
+ TestTimeouts::action_timeout() / kSleepInterval;
for (int i = 0; i < kNumIntervals; ++i) {
const std::wstring& title = GetActiveTabTitle();
if (title == kPlaying || title == kFailed ||
StartsWith(title, kError, true))
break;
- base::PlatformThread::Sleep(kSleepIntervalMs);
+ base::PlatformThread::Sleep(kSleepInterval);
}
EXPECT_EQ(kPlaying, GetActiveTabTitle());
« no previous file with comments | « chrome/browser/intranet_redirect_detector.cc ('k') | chrome/browser/omnibox_search_hint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698