| OLD | NEW |
| 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 CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHECKER
_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHECKER
_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHECKER
_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHECKER
_H_ |
| 7 | 7 |
| 8 #include <string> |
| 9 |
| 8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 9 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 10 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" | 12 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke
r.h" |
| 11 #include "components/sync/driver/sync_service_observer.h" | 13 #include "components/sync/driver/sync_service_observer.h" |
| 12 | 14 |
| 13 namespace browser_sync { | 15 namespace browser_sync { |
| 14 class ProfileSyncService; | 16 class ProfileSyncService; |
| 15 } // namespace browser_sync | 17 } // namespace browser_sync |
| 16 | 18 |
| 17 // This class provides some common functionality for StatusChangeCheckers that | 19 // This class provides some common functionality for StatusChangeCheckers that |
| 18 // observe only one ProfileSyncService. This class is abstract. Its | 20 // observe only one ProfileSyncService. This class is abstract. Its |
| 19 // descendants are expected to provide additional functionality. | 21 // descendants are expected to provide additional functionality. |
| 20 class SingleClientStatusChangeChecker | 22 class SingleClientStatusChangeChecker |
| 21 : public MultiClientStatusChangeChecker { | 23 : public MultiClientStatusChangeChecker { |
| 22 public: | 24 public: |
| 23 explicit SingleClientStatusChangeChecker( | 25 explicit SingleClientStatusChangeChecker( |
| 24 browser_sync::ProfileSyncService* service); | 26 browser_sync::ProfileSyncService* service); |
| 25 ~SingleClientStatusChangeChecker() override; | 27 ~SingleClientStatusChangeChecker() override; |
| 26 | 28 |
| 27 // StatusChangeChecker implementations and stubs. | 29 // StatusChangeChecker implementations and stubs. |
| 28 bool IsExitConditionSatisfied() override = 0; | 30 bool IsExitConditionSatisfied() override = 0; |
| 29 std::string GetDebugMessage() const override = 0; | 31 std::string GetDebugMessage() const override = 0; |
| 30 | 32 |
| 31 protected: | 33 protected: |
| 32 browser_sync::ProfileSyncService* service(); | 34 browser_sync::ProfileSyncService* service(); |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHEC
KER_H_ | 37 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHEC
KER_H_ |
| OLD | NEW |