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

Side by Side Diff: chrome/browser/sync/test/integration/status_change_checker.h

Issue 2828913003: Replace "nested message loop" with "nested run loop" in comments. (Closed)
Patch Set: rebase Created 3 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_TEST_INTEGRATION_STATUS_CHANGE_CHECKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_STATUS_CHANGE_CHECKER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_STATUS_CHANGE_CHECKER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_STATUS_CHANGE_CHECKER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 27 matching lines...) Expand all
38 38
39 // Returns true if the blocking wait was exited because of a timeout. 39 // Returns true if the blocking wait was exited because of a timeout.
40 bool TimedOut() const; 40 bool TimedOut() const;
41 41
42 protected: 42 protected:
43 virtual ~StatusChangeChecker(); 43 virtual ~StatusChangeChecker();
44 44
45 // Timeout length when blocking. 45 // Timeout length when blocking.
46 virtual base::TimeDelta GetTimeoutDuration(); 46 virtual base::TimeDelta GetTimeoutDuration();
47 47
48 // Helper function to start running the nested message loop. 48 // Helper function to start running the nested run loop.
49 // 49 //
50 // Will exit if IsExitConditionSatisfied() returns true when called from 50 // Will exit if IsExitConditionSatisfied() returns true when called from
51 // CheckExitCondition(), if a timeout occurs, or if StopWaiting() is called. 51 // CheckExitCondition(), if a timeout occurs, or if StopWaiting() is called.
52 // 52 //
53 // The timeout length is specified with GetTimeoutDuration(). 53 // The timeout length is specified with GetTimeoutDuration().
54 void StartBlockingWait(); 54 void StartBlockingWait();
55 55
56 // Stop the nested running of the message loop started in StartBlockingWait(). 56 // Stop the nested running of the message loop started in StartBlockingWait().
57 void StopWaiting(); 57 void StopWaiting();
58 58
59 // Checks IsExitConditionSatisfied() and calls StopWaiting() if it returns 59 // Checks IsExitConditionSatisfied() and calls StopWaiting() if it returns
60 // true. 60 // true.
61 void CheckExitCondition(); 61 void CheckExitCondition();
62 62
63 // Called when the blocking wait timeout is exceeded. 63 // Called when the blocking wait timeout is exceeded.
64 void OnTimeout(); 64 void OnTimeout();
65 65
66 bool timed_out_; 66 bool timed_out_;
67 }; 67 };
68 68
69 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_STATUS_CHANGE_CHECKER_H_ 69 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_STATUS_CHANGE_CHECKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698