| Index: sync/notifier/fake_invalidator.cc
|
| diff --git a/sync/notifier/fake_sync_notifier.cc b/sync/notifier/fake_invalidator.cc
|
| similarity index 44%
|
| rename from sync/notifier/fake_sync_notifier.cc
|
| rename to sync/notifier/fake_invalidator.cc
|
| index 0ef5ef97c3a3a28f6672ba19603ee5121b4ce25b..85696ad4d64baf8ddd286cbabc702432d1e4e330 100644
|
| --- a/sync/notifier/fake_sync_notifier.cc
|
| +++ b/sync/notifier/fake_invalidator.cc
|
| @@ -2,72 +2,71 @@
|
| // 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.h"
|
| +#include "sync/notifier/fake_invalidator.h"
|
|
|
| namespace syncer {
|
|
|
| -FakeSyncNotifier::FakeSyncNotifier() {}
|
| +FakeInvalidator::FakeInvalidator() {}
|
|
|
| -FakeSyncNotifier::~FakeSyncNotifier() {}
|
| +FakeInvalidator::~FakeInvalidator() {}
|
|
|
| -bool FakeSyncNotifier::IsHandlerRegistered(
|
| - SyncNotifierObserver* handler) const {
|
| +bool FakeInvalidator::IsHandlerRegistered(InvalidationHandler* handler) const {
|
| return registrar_.IsHandlerRegisteredForTest(handler);
|
| }
|
|
|
| -ObjectIdSet FakeSyncNotifier::GetRegisteredIds(
|
| - SyncNotifierObserver* handler) const {
|
| +ObjectIdSet FakeInvalidator::GetRegisteredIds(
|
| + InvalidationHandler* handler) const {
|
| return registrar_.GetRegisteredIdsForTest(handler);
|
| }
|
|
|
| -void FakeSyncNotifier::RegisterHandler(SyncNotifierObserver* handler) {
|
| +void FakeInvalidator::RegisterHandler(InvalidationHandler* handler) {
|
| registrar_.RegisterHandler(handler);
|
| }
|
|
|
| -const std::string& FakeSyncNotifier::GetUniqueId() const {
|
| +const std::string& FakeInvalidator::GetUniqueId() const {
|
| return unique_id_;
|
| }
|
|
|
| -const std::string& FakeSyncNotifier::GetStateDeprecated() const {
|
| +const std::string& FakeInvalidator::GetStateDeprecated() const {
|
| return state_;
|
| }
|
|
|
| -const std::string& FakeSyncNotifier::GetCredentialsEmail() const {
|
| +const std::string& FakeInvalidator::GetCredentialsEmail() const {
|
| return email_;
|
| }
|
|
|
| -const std::string& FakeSyncNotifier::GetCredentialsToken() const {
|
| +const std::string& FakeInvalidator::GetCredentialsToken() const {
|
| return token_;
|
| }
|
|
|
| -ModelTypeSet FakeSyncNotifier::GetLastChangedTypes() const {
|
| +ModelTypeSet FakeInvalidator::GetLastChangedTypes() const {
|
| return last_changed_types_;
|
| }
|
|
|
| -void FakeSyncNotifier::UpdateRegisteredIds(SyncNotifierObserver* handler,
|
| +void FakeInvalidator::UpdateRegisteredIds(InvalidationHandler* handler,
|
| const ObjectIdSet& ids) {
|
| registrar_.UpdateRegisteredIds(handler, ids);
|
| }
|
|
|
| -void FakeSyncNotifier::UnregisterHandler(SyncNotifierObserver* handler) {
|
| +void FakeInvalidator::UnregisterHandler(InvalidationHandler* handler) {
|
| registrar_.UnregisterHandler(handler);
|
| }
|
|
|
| -void FakeSyncNotifier::SetUniqueId(const std::string& unique_id) {
|
| +void FakeInvalidator::SetUniqueId(const std::string& unique_id) {
|
| unique_id_ = unique_id;
|
| }
|
|
|
| -void FakeSyncNotifier::SetStateDeprecated(const std::string& state) {
|
| +void FakeInvalidator::SetStateDeprecated(const std::string& state) {
|
| state_ = state;
|
| }
|
|
|
| -void FakeSyncNotifier::UpdateCredentials(
|
| +void FakeInvalidator::UpdateCredentials(
|
| const std::string& email, const std::string& token) {
|
| email_ = email;
|
| token_ = token;
|
| }
|
|
|
| -void FakeSyncNotifier::SendNotification(ModelTypeSet changed_types) {
|
| +void FakeInvalidator::SendNotification(ModelTypeSet changed_types) {
|
| last_changed_types_ = changed_types;
|
| }
|
|
|
|
|