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

Unified Diff: sync/internal_api/public/test/fake_sync_manager.h

Issue 10916131: [Invalidations] Add GetInvalidatorState() to Invalidator{,Frontend} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android Created 8 years, 3 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
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.cc ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/test/fake_sync_manager.h
diff --git a/sync/internal_api/public/test/fake_sync_manager.h b/sync/internal_api/public/test/fake_sync_manager.h
index df0e3e0a7e97367b88b3c4a659e32327bb323438..b050aca3751f984e0b8f60eccfe4cddb4dcc6355 100644
--- a/sync/internal_api/public/test/fake_sync_manager.h
+++ b/sync/internal_api/public/test/fake_sync_manager.h
@@ -55,13 +55,10 @@ class FakeSyncManager : public SyncManager {
// Posts a method to invalidate the given IDs on the sync thread.
void Invalidate(const ObjectIdStateMap& id_state_map,
- IncomingNotificationSource source);
+ IncomingInvalidationSource source);
- // Posts a method to enable notifications on the sync thread.
- void EnableNotifications();
-
- // Posts a method to disable notifications on the sync thread.
- void DisableNotifications(NotificationsDisabledReason reason);
+ // Posts a method to update the invalidator state on the sync thread.
+ void UpdateInvalidatorState(InvalidatorState state);
// Block until the sync thread has finished processing any pending messages.
void WaitForSyncThread();
@@ -125,9 +122,8 @@ class FakeSyncManager : public SyncManager {
private:
void InvalidateOnSyncThread(
const ObjectIdStateMap& id_state_map,
- IncomingNotificationSource source);
- void EnableNotificationsOnSyncThread();
- void DisableNotificationsOnSyncThread(NotificationsDisabledReason reason);
+ IncomingInvalidationSource source);
+ void UpdateInvalidatorStateOnSyncThread(InvalidatorState state);
scoped_refptr<base::SequencedTaskRunner> sync_task_runner_;
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.cc ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698