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

Side by Side Diff: ios/testing/wait_util.h

Issue 2608733002: Fix include/import in ios/testing and ios/chrome/test (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « ios/testing/ocmock_complex_type_helper_unittest.mm ('k') | ios/testing/wait_util.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_TESTING_WAIT_UTIL_H_ 5 #ifndef IOS_TESTING_WAIT_UTIL_H_
6 #define IOS_TESTING_WAIT_UTIL_H_ 6 #define IOS_TESTING_WAIT_UTIL_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "base/ios/block_types.h" 10 #import "base/ios/block_types.h"
11 11
12 namespace testing { 12 namespace testing {
13 13
14 // Constant for UI wait loop in seconds. 14 // Constant for UI wait loop in seconds.
15 extern const NSTimeInterval kSpinDelaySeconds; 15 extern const NSTimeInterval kSpinDelaySeconds;
16 16
17 // Constant for timeout in seconds while waiting for UI element. 17 // Constant for timeout in seconds while waiting for UI element.
18 extern const NSTimeInterval kWaitForUIElementTimeout; 18 extern const NSTimeInterval kWaitForUIElementTimeout;
19 19
20 // Constant for timeout in seconds while waiting for JavaScript completion. 20 // Constant for timeout in seconds while waiting for JavaScript completion.
21 extern const NSTimeInterval kWaitForJSCompletionTimeout; 21 extern const NSTimeInterval kWaitForJSCompletionTimeout;
22 22
23 // Constant for timeout in seconds while waiting for a download to complete. 23 // Constant for timeout in seconds while waiting for a download to complete.
24 extern const NSTimeInterval kWaitForDownloadTimeout; 24 extern const NSTimeInterval kWaitForDownloadTimeout;
25 25
26 // Constant for timeout in seconds while waiting for a pageload to complete. 26 // Constant for timeout in seconds while waiting for a pageload to complete.
27 extern const NSTimeInterval kWaitForPageLoadTimeout; 27 extern const NSTimeInterval kWaitForPageLoadTimeout;
28 28
29 // Returns true when condition() becomes true, otherwise returns false after 29 // Returns true when condition() becomes true, otherwise returns false after
30 // |timeout|. 30 // |timeout|.
31 bool WaitUntilConditionOrTimeout(NSTimeInterval timeout, 31 bool WaitUntilConditionOrTimeout(NSTimeInterval timeout,
32 ConditionBlock condition); 32 ConditionBlock condition);
33 33
34 } // namespace testing 34 } // namespace testing
35 35
36 #endif // IOS_TESTING_WAIT_UTIL_H_ 36 #endif // IOS_TESTING_WAIT_UTIL_H_
OLDNEW
« no previous file with comments | « ios/testing/ocmock_complex_type_helper_unittest.mm ('k') | ios/testing/wait_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698