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

Unified Diff: ios/testing/earl_grey/wait_util.h

Issue 2044433003: Create EarlGrey wait utility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix blocks Created 4 years, 6 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/testing/earl_grey/earl_grey_support.gyp ('k') | ios/testing/earl_grey/wait_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/testing/earl_grey/wait_util.h
diff --git a/ios/testing/earl_grey/wait_util.h b/ios/testing/earl_grey/wait_util.h
index 08e8624bbfc0178a47e81207ba65baa952cfc48c..1a8db47ecde733890a2592e6184b57e286e46cc9 100644
--- a/ios/testing/earl_grey/wait_util.h
+++ b/ios/testing/earl_grey/wait_util.h
@@ -17,6 +17,10 @@ extern const NSTimeInterval kWaitForUIElementTimeout;
// Constant for timeout in seconds while waiting for JavaScript completion.
extern const NSTimeInterval kWaitForJSCompletionTimeout;
-}
+
+// Waits until |condition| is true, or induces GREYAssert after |timeout|.
+void WaitUntilCondition(NSTimeInterval timeout, bool (^condition)(void));
+
+} // namespace testing
#endif // IOS_TESTING_EARL_GREY_WAIT_UTIL_H_
« no previous file with comments | « ios/testing/earl_grey/earl_grey_support.gyp ('k') | ios/testing/earl_grey/wait_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698