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()); |