Index: sync/notifier/fake_invalidation_handler.cc |
diff --git a/sync/notifier/fake_sync_notifier_observer.cc b/sync/notifier/fake_invalidation_handler.cc |
similarity index 57% |
rename from sync/notifier/fake_sync_notifier_observer.cc |
rename to sync/notifier/fake_invalidation_handler.cc |
index b95f9a9f8f304657b15a2a7e574143d00829f70b..6c065871a9ecd857797a1c97c39171510cf12aec 100644 |
--- a/sync/notifier/fake_sync_notifier_observer.cc |
+++ b/sync/notifier/fake_invalidation_handler.cc |
@@ -2,46 +2,46 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "sync/notifier/fake_sync_notifier_observer.h" |
+#include "sync/notifier/fake_invalidation_handler.h" |
namespace syncer { |
-FakeSyncNotifierObserver::FakeSyncNotifierObserver() |
+FakeInvalidationHandler::FakeInvalidationHandler() |
: reason_(TRANSIENT_NOTIFICATION_ERROR), |
last_source_(LOCAL_NOTIFICATION), |
notification_count_(0) {} |
-FakeSyncNotifierObserver::~FakeSyncNotifierObserver() {} |
+FakeInvalidationHandler::~FakeInvalidationHandler() {} |
NotificationsDisabledReason |
-FakeSyncNotifierObserver::GetNotificationsDisabledReason() const { |
+FakeInvalidationHandler::GetNotificationsDisabledReason() const { |
return reason_; |
} |
const ObjectIdStateMap& |
-FakeSyncNotifierObserver::GetLastNotificationIdStateMap() const { |
+FakeInvalidationHandler::GetLastNotificationIdStateMap() const { |
return last_id_state_map_; |
} |
IncomingNotificationSource |
-FakeSyncNotifierObserver::GetLastNotificationSource() const { |
+FakeInvalidationHandler::GetLastNotificationSource() const { |
return last_source_; |
} |
-int FakeSyncNotifierObserver::GetNotificationCount() const { |
+int FakeInvalidationHandler::GetNotificationCount() const { |
return notification_count_; |
} |
-void FakeSyncNotifierObserver::OnNotificationsEnabled() { |
+void FakeInvalidationHandler::OnNotificationsEnabled() { |
reason_ = NO_NOTIFICATION_ERROR; |
} |
-void FakeSyncNotifierObserver::OnNotificationsDisabled( |
+void FakeInvalidationHandler::OnNotificationsDisabled( |
NotificationsDisabledReason reason) { |
reason_ = reason; |
} |
-void FakeSyncNotifierObserver::OnIncomingNotification( |
+void FakeInvalidationHandler::OnIncomingNotification( |
const ObjectIdStateMap& id_state_map, |
IncomingNotificationSource source) { |
last_id_state_map_ = id_state_map; |