summaryrefslogtreecommitdiffstats
path: root/sync/notifier/non_blocking_invalidator_unittest.cc
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-07 19:19:16 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-07 19:19:16 +0000
commit08a6f99997bad56869412e1da065acda3dc41538 (patch)
treecf28f8848aed5fa3f641e8f76380469500efa852 /sync/notifier/non_blocking_invalidator_unittest.cc
parentc12229d169345b5ea6fc69cfc4f23d57ac3a9fcc (diff)
downloadchromium_src-08a6f99997bad56869412e1da065acda3dc41538.zip
chromium_src-08a6f99997bad56869412e1da065acda3dc41538.tar.gz
chromium_src-08a6f99997bad56869412e1da065acda3dc41538.tar.bz2
[Invalidations] Add GetInvalidatorState() to Invalidator{,Frontend}
Combine OnNotifications{Enabled,Disabled}() into OnInvalidatorStateChange(). Replace NotificationsDisabledReason with InvalidatorState. Rename OnIncomingNotification to OnIncomingInvalidation. Also change some references of "notification" to "invalidation". Set the initial invalidator state in ChromeToMobileService. Also remove OnNotificationsEnabled() call from OnIncomingInvalidation(). Instantiate InvalidatorTest template for ProfileSyncService. Move comments for invalidation-related functions from ProfileSyncService to InvalidatorFrontend. Put DISALLOW_COPY_AND_ASSIGN on some classes. Fix comment in invalidator.h. BUG=142475 TBR=brettw@chromium.org Review URL: https://chromiumcodereview.appspot.com/10916131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/notifier/non_blocking_invalidator_unittest.cc')
-rw-r--r--sync/notifier/non_blocking_invalidator_unittest.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/sync/notifier/non_blocking_invalidator_unittest.cc b/sync/notifier/non_blocking_invalidator_unittest.cc
index ed7e6bf..f865b4a 100644
--- a/sync/notifier/non_blocking_invalidator_unittest.cc
+++ b/sync/notifier/non_blocking_invalidator_unittest.cc
@@ -76,17 +76,13 @@ class NonBlockingInvalidatorTestDelegate {
run_loop.Run();
}
- void TriggerOnNotificationsEnabled() {
- invalidator_->OnNotificationsEnabled();
+ void TriggerOnInvalidatorStateChange(InvalidatorState state) {
+ invalidator_->OnInvalidatorStateChange(state);
}
- void TriggerOnIncomingNotification(const ObjectIdStateMap& id_state_map,
- IncomingNotificationSource source) {
- invalidator_->OnIncomingNotification(id_state_map, source);
- }
-
- void TriggerOnNotificationsDisabled(NotificationsDisabledReason reason) {
- invalidator_->OnNotificationsDisabled(reason);
+ void TriggerOnIncomingInvalidation(const ObjectIdStateMap& id_state_map,
+ IncomingInvalidationSource source) {
+ invalidator_->OnIncomingInvalidation(id_state_map, source);
}
static bool InvalidatorHandlesDeprecatedState() {