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

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

Issue 165393010: Draft: Moving code out of ProfileSyncServiceHarness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/multi_client_status_change_checker.h
diff --git a/chrome/browser/sync/test/integration/multi_client_status_change_checker.h b/chrome/browser/sync/test/integration/multi_client_status_change_checker.h
new file mode 100644
index 0000000000000000000000000000000000000000..f1f106f6080e5710c5260337fa0bc358a1f33e66
--- /dev/null
+++ b/chrome/browser/sync/test/integration/multi_client_status_change_checker.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_H_
+#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_H_
+
+#include <vector>
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/sync/test/integration/status_change_checker.h"
+
+class ProfileSyncService;
+class ProfileSyncServiceObserver;
+
+class MultiClientStatusChangeChecker : public StatusChangeChecker {
+ public:
+ explicit MultiClientStatusChangeChecker(
+ std::vector<ProfileSyncService*> services);
+ virtual ~MultiClientStatusChangeChecker();
+
+ // StatusChangeChecker implementations and stubs.
+ virtual bool IsExitConditionSatisfied() = 0;
+ virtual std::string GetDebugMessage() const = 0;
+ virtual base::TimeDelta GetTimeoutDuration() OVERRIDE;
+ virtual void InitObserver(ProfileSyncServiceObserver*) OVERRIDE;
+ virtual void UninitObserver(ProfileSyncServiceObserver*) OVERRIDE;
+
+ protected:
+ typedef std::vector<ProfileSyncService*> ServiceList;
+ ServiceList services_;
+};
+
+#endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_MULTI_CLIENT_STATUS_CHANGE_CHECKER_H_

Powered by Google App Engine
This is Rietveld 408576698