| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 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_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/sync/test/integration/status_change_checker.h" |
| 10 |
| 11 class ProfileSyncService; |
| 12 class ProfileSyncServiceObserver; |
| 13 |
| 14 class SingleClientStatusChangeChecker : public StatusChangeChecker { |
| 15 public: |
| 16 explicit SingleClientStatusChangeChecker(ProfileSyncService* service); |
| 17 virtual ~SingleClientStatusChangeChecker(); |
| 18 |
| 19 // StatusChangeChecker implementations and stubs. |
| 20 virtual bool IsExitConditionSatisfied() = 0; |
| 21 virtual std::string GetDebugMessage() const = 0; |
| 22 virtual base::TimeDelta GetTimeoutDuration() OVERRIDE; |
| 23 virtual void InitObserver(ProfileSyncServiceObserver*) OVERRIDE; |
| 24 virtual void UninitObserver(ProfileSyncServiceObserver*) OVERRIDE; |
| 25 |
| 26 protected: |
| 27 ProfileSyncService* service() { return service_; } |
| 28 |
| 29 private: |
| 30 ProfileSyncService* service_; |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHEC
KER_H_ |
| OLD | NEW |