| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_TESTING_EARL_GREY_WAIT_UTIL_H_ | |
| 6 #define IOS_TESTING_EARL_GREY_WAIT_UTIL_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 namespace testing { | |
| 11 | |
| 12 // Waits until |condition| is true, or induces GREYAssert after |timeout|. | |
| 13 void WaitUntilCondition(NSTimeInterval timeout, bool (^condition)(void)); | |
| 14 | |
| 15 // Waits until |condition| is true, or induces GREYAssert after |timeout| with | |
| 16 // |timeoutDescription| error message. | |
| 17 void WaitUntilCondition(NSTimeInterval timeout, | |
| 18 NSString* timeoutDescription, | |
| 19 bool (^condition)(void)); | |
| 20 | |
| 21 } // namespace testing | |
| 22 | |
| 23 #endif // IOS_TESTING_EARL_GREY_WAIT_UTIL_H_ | |
| OLD | NEW |