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

Side by Side Diff: base/test/ios/wait_util.h

Issue 2194283002: [ios] Use SpinRunLoopWithMinDelay in MetaTagsTestCase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comment 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/test/ios/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 BASE_TEST_IOS_WAIT_UTIL_H_ 5 #ifndef BASE_TEST_IOS_WAIT_UTIL_H_
6 #define BASE_TEST_IOS_WAIT_UTIL_H_ 6 #define BASE_TEST_IOS_WAIT_UTIL_H_
7 7
8 #include "base/ios/block_types.h" 8 #include "base/ios/block_types.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 // Waits until |condition| is met. A |message_loop| to spin and a |timeout| can 33 // Waits until |condition| is met. A |message_loop| to spin and a |timeout| can
34 // be optionally passed; if |timeout| is zero, a reasonable default will be 34 // be optionally passed; if |timeout| is zero, a reasonable default will be
35 // used. 35 // used.
36 void WaitUntilCondition(ConditionBlock condition, 36 void WaitUntilCondition(ConditionBlock condition,
37 MessageLoop* message_loop, 37 MessageLoop* message_loop,
38 TimeDelta timeout); 38 TimeDelta timeout);
39 void WaitUntilCondition(ConditionBlock condition); 39 void WaitUntilCondition(ConditionBlock condition);
40 40
41 // Lets the run loop of the current thread process other messages 41 // Lets the run loop of the current thread process other messages
42 // within the given maximum delay. 42 // within the given maximum delay. This method may return before max_delay
43 // elapsed.
43 void SpinRunLoopWithMaxDelay(TimeDelta max_delay); 44 void SpinRunLoopWithMaxDelay(TimeDelta max_delay);
44 45
46 // Lets the run loop of the current thread process other messages
47 // within the given minimum delay. This method returns after |min_delay|
48 // elapsed.
49 void SpinRunLoopWithMinDelay(TimeDelta min_delay);
50
45 } // namespace ios 51 } // namespace ios
46 } // namespace test 52 } // namespace test
47 } // namespace base 53 } // namespace base
48 54
49 #endif // BASE_TEST_IOS_WAIT_UTIL_H_ 55 #endif // BASE_TEST_IOS_WAIT_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/test/ios/wait_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698