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

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

Issue 2252723008: Add a custom error message in EG WaitUtil (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@taplink
Patch Set: 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 | « no previous file | 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 1a8db47ecde733890a2592e6184b57e286e46cc9..8ad5991d64aff877992dfd2f47f4b2f303a4d6f9 100644
--- a/ios/testing/earl_grey/wait_util.h
+++ b/ios/testing/earl_grey/wait_util.h
@@ -21,6 +21,12 @@ extern const NSTimeInterval kWaitForJSCompletionTimeout;
// Waits until |condition| is true, or induces GREYAssert after |timeout|.
void WaitUntilCondition(NSTimeInterval timeout, bool (^condition)(void));
+// Waits until |condition| is true, or induces GREYAssert after |timeout| with
+// |timeoutDescription| error message.
+void WaitUntilCondition(NSTimeInterval timeout,
+ bool (^condition)(void),
baxley 2016/08/22 03:55:01 nit: what do you think about moving the block para
gambard 2016/08/22 07:11:04 Done.
+ NSString* timeoutDescription);
+
} // namespace testing
-#endif // IOS_TESTING_EARL_GREY_WAIT_UTIL_H_
+#endif // IOS_TESTING_EARL_GREY_WAIT_UTIL_H_
« no previous file with comments | « no previous file | ios/testing/earl_grey/wait_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698