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

Side by Side Diff: chrome/browser/sync/test/integration/single_client_status_change_checker.h

Issue 184993006: sync: Change progress marker checking in tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/sync/test/integration/status_change_checker.h" 9 #include "chrome/browser/sync/test/integration/status_change_checker.h"
10 10
11 class ProfileSyncService; 11 class ProfileSyncService;
12 class ProfileSyncServiceObserver; 12 class ProfileSyncServiceHarness;
13 13
14 // This class provides some common functionality for StatusChangeCheckers that 14 // This class provides some common functionality for StatusChangeCheckers that
15 // observe only one ProfileSyncService. This class is abstract. Its 15 // observe only one ProfileSyncService. This class is abstract. Its
16 // descendants are expected to provide additional functionality. 16 // descendants are expected to provide additional functionality.
17 class SingleClientStatusChangeChecker : public StatusChangeChecker { 17 class SingleClientStatusChangeChecker : public StatusChangeChecker {
18 public: 18 public:
19 explicit SingleClientStatusChangeChecker(ProfileSyncService* service); 19 explicit SingleClientStatusChangeChecker(ProfileSyncService* service);
20 virtual ~SingleClientStatusChangeChecker(); 20 virtual ~SingleClientStatusChangeChecker();
21 21
22 // StatusChangeChecker implementations and stubs. 22 // StatusChangeChecker implementations and stubs.
23 virtual bool IsExitConditionSatisfied() = 0; 23 virtual bool IsExitConditionSatisfied() = 0;
24 virtual std::string GetDebugMessage() const = 0; 24 virtual std::string GetDebugMessage() const = 0;
25 virtual void InitObserver(ProfileSyncServiceObserver*) OVERRIDE; 25 virtual void InitObserver(ProfileSyncServiceHarness* obs) OVERRIDE;
rlarocque 2014/03/04 01:56:18 This change is pretty ugly. It was needed so we c
26 virtual void UninitObserver(ProfileSyncServiceObserver*) OVERRIDE; 26 virtual void UninitObserver(ProfileSyncServiceHarness* obs) OVERRIDE;
27 27
28 protected: 28 protected:
29 ProfileSyncService* service() { return service_; } 29 ProfileSyncService* service() { return service_; }
30 30
31 private: 31 private:
32 ProfileSyncService* service_; 32 ProfileSyncService* service_;
33 }; 33 };
34 34
35 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHEC KER_H_ 35 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SINGLE_CLIENT_STATUS_CHANGE_CHEC KER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698