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

Unified Diff: chrome/browser/sync/test/integration/status_change_checker.h

Issue 474273003: sync: Refactor bookmarks integration tests Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use RunLoop for favicon wait Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/status_change_checker.h
diff --git a/chrome/browser/sync/test/integration/status_change_checker.h b/chrome/browser/sync/test/integration/status_change_checker.h
index b1611cc86b39881da881f2b63ecfe66235879ded..8647e0fa261881cf25bd409d94d56afc65149653 100644
--- a/chrome/browser/sync/test/integration/status_change_checker.h
+++ b/chrome/browser/sync/test/integration/status_change_checker.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/run_loop.h"
#include "base/time/time.h"
class ProfileSyncServiceHarness;
@@ -21,7 +22,7 @@ class ProfileSyncServiceHarness;
// sense to call StartBlockingWait() more than once.
class StatusChangeChecker {
public:
- explicit StatusChangeChecker();
+ StatusChangeChecker();
// Returns a string representing this current StatusChangeChecker, and
// possibly some small part of its state. For example: "AwaitPassphraseError"
@@ -57,7 +58,11 @@ class StatusChangeChecker {
// Called when the blocking wait timeout is exceeded.
void OnTimeout();
+ // True if the checker stopped waiting because of timeout.
bool timed_out_;
+
+ // The RunLoop used for waiting.
+ base::RunLoop run_loop_;
};
#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_STATUS_CHANGE_CHECKER_H_

Powered by Google App Engine
This is Rietveld 408576698