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