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

Unified Diff: content/browser/geolocation/device_data_provider_unittest.cc

Issue 9195028: Convert use of int ms to TimeDelta in files owned by bulach. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
Index: content/browser/geolocation/device_data_provider_unittest.cc
diff --git a/content/browser/geolocation/device_data_provider_unittest.cc b/content/browser/geolocation/device_data_provider_unittest.cc
index 3fb5cc4d59a649dc6746d7c1ba800607bb119ddf..27cc72bf4501b74312cf7a41095aa171d4d7d730 100644
--- a/content/browser/geolocation/device_data_provider_unittest.cc
+++ b/content/browser/geolocation/device_data_provider_unittest.cc
@@ -27,12 +27,12 @@ TEST(GeolocationDeviceDataProviderWifiData, CreateDestroy) {
for (int i = 0; i < 10; i++) {
DeviceDataProvider<WifiData>::Register(&listener);
for (int j = 0; j < 10; j++) {
- base::PlatformThread::Sleep(0);
+ base::PlatformThread::Sleep(base::TimeDelta());
main_message_loop.RunAllPending(); // See comment above
}
DeviceDataProvider<WifiData>::Unregister(&listener);
for (int j = 0; j < 10; j++) {
- base::PlatformThread::Sleep(0);
+ base::PlatformThread::Sleep(base::TimeDelta());
main_message_loop.RunAllPending(); // See comment above
}
}
« no previous file with comments | « content/browser/device_orientation/provider_impl.cc ('k') | content/browser/geolocation/gps_location_provider_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698