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

Unified Diff: ios/web/net/request_tracker_impl_unittest.mm

Issue 2357913003: Remove calls to MessageLoop::Run/RunUntilIdle from ios/. (Closed)
Patch Set: add missing include Created 4 years, 3 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 | « ios/chrome/browser/web_resource/web_resource_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/net/request_tracker_impl_unittest.mm
diff --git a/ios/web/net/request_tracker_impl_unittest.mm b/ios/web/net/request_tracker_impl_unittest.mm
index 80392a3396b10cc67aee88c740b8a682b911c2eb..52d31166af6056d90bf593ae8ce567d03beddfa1 100644
--- a/ios/web/net/request_tracker_impl_unittest.mm
+++ b/ios/web/net/request_tracker_impl_unittest.mm
@@ -12,6 +12,7 @@
#include "base/memory/ptr_util.h"
#include "base/memory/scoped_vector.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/strings/sys_string_conversions.h"
#include "ios/web/public/cert_policy.h"
#include "ios/web/public/certificate_policy_cache.h"
@@ -205,7 +206,7 @@ class RequestTrackerTest : public PlatformTest {
return [receiver_ error];
if (base::Time::Now() > maxDate)
return @"Time is up, too slow to go";
- loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(1));
}
return nil;
« no previous file with comments | « ios/chrome/browser/web_resource/web_resource_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698