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

Unified Diff: base/test/ios/wait_util.mm

Issue 2194283002: [ios] Use SpinRunLoopWithMinDelay in MetaTagsTestCase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comment Created 4 years, 4 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 | « base/test/ios/wait_util.h ('k') | ios/web/shell/test/meta_tags_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/ios/wait_util.mm
diff --git a/base/test/ios/wait_util.mm b/base/test/ios/wait_util.mm
index c69b692eff168eda7f90ae45e09cbc1bf344a025..05fc5147f9b6df5c931dc8944e96cf72c69d0917 100644
--- a/base/test/ios/wait_util.mm
+++ b/base/test/ios/wait_util.mm
@@ -57,6 +57,13 @@ void SpinRunLoopWithMaxDelay(TimeDelta max_delay) {
beforeDate:beforeDate];
}
+void SpinRunLoopWithMinDelay(TimeDelta min_delay) {
+ ElapsedTimer timer;
+ while (timer.Elapsed() < min_delay) {
+ SpinRunLoopWithMaxDelay(base::TimeDelta::FromMilliseconds(10));
+ }
+}
+
} // namespace ios
} // namespace test
} // namespace base
« no previous file with comments | « base/test/ios/wait_util.h ('k') | ios/web/shell/test/meta_tags_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698