Index: chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc |
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc b/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc |
index 29bf546ec81d0381be4e81f0d1df3a65f31e850c..285aeea4ebd44e7d0f5efef210e44ceb9d5a7047 100644 |
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc |
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc |
@@ -340,6 +340,9 @@ class DriveBackendSyncTest : public testing::Test, |
SyncStatusCode local_sync_status; |
SyncStatusCode remote_sync_status; |
while (true) { |
+ base::RunLoop().RunUntilIdle(); |
+ WaitForIdleWorker(); |
+ |
if (!task_limit--) |
return SYNC_STATUS_ABORT; |