| 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 #include "ios/testing/earl_grey/wait_util.h" | |
| 6 | |
| 7 #import <EarlGrey/EarlGrey.h> | |
| 8 | |
| 9 #include "base/test/ios/wait_util.h" | |
| 10 #include "ios/testing/wait_util.h" | |
| 11 | |
| 12 namespace testing { | |
| 13 | |
| 14 void WaitUntilCondition(NSTimeInterval timeout, | |
| 15 NSString* timeoutDescription, | |
| 16 bool (^condition)(void)) { | |
| 17 GREYAssert(testing::WaitUntilConditionOrTimeout(timeout, condition), | |
| 18 timeoutDescription); | |
| 19 } | |
| 20 | |
| 21 void WaitUntilCondition(NSTimeInterval timeout, bool (^condition)(void)) { | |
| 22 WaitUntilCondition(timeout, @"Timeout waiting for condition.", condition); | |
| 23 } | |
| 24 | |
| 25 } // namespace testing | |
| OLD | NEW |