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

Unified Diff: sync/notifier/fake_sync_notifier.cc

Issue 10875064: Rename SyncNotifier->Invalidator and SyncNotifierObserver->InvalidationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to ToT for landing Created 8 years, 4 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 | « sync/notifier/fake_sync_notifier.h ('k') | sync/notifier/fake_sync_notifier_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/fake_sync_notifier.cc
diff --git a/sync/notifier/fake_sync_notifier.cc b/sync/notifier/fake_sync_notifier.cc
deleted file mode 100644
index 0ef5ef97c3a3a28f6672ba19603ee5121b4ce25b..0000000000000000000000000000000000000000
--- a/sync/notifier/fake_sync_notifier.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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"
-
-namespace syncer {
-
-FakeSyncNotifier::FakeSyncNotifier() {}
-
-FakeSyncNotifier::~FakeSyncNotifier() {}
-
-bool FakeSyncNotifier::IsHandlerRegistered(
- SyncNotifierObserver* handler) const {
- return registrar_.IsHandlerRegisteredForTest(handler);
-}
-
-ObjectIdSet FakeSyncNotifier::GetRegisteredIds(
- SyncNotifierObserver* handler) const {
- return registrar_.GetRegisteredIdsForTest(handler);
-}
-
-void FakeSyncNotifier::RegisterHandler(SyncNotifierObserver* handler) {
- registrar_.RegisterHandler(handler);
-}
-
-const std::string& FakeSyncNotifier::GetUniqueId() const {
- return unique_id_;
-}
-
-const std::string& FakeSyncNotifier::GetStateDeprecated() const {
- return state_;
-}
-
-const std::string& FakeSyncNotifier::GetCredentialsEmail() const {
- return email_;
-}
-
-const std::string& FakeSyncNotifier::GetCredentialsToken() const {
- return token_;
-}
-
-ModelTypeSet FakeSyncNotifier::GetLastChangedTypes() const {
- return last_changed_types_;
-}
-
-void FakeSyncNotifier::UpdateRegisteredIds(SyncNotifierObserver* handler,
- const ObjectIdSet& ids) {
- registrar_.UpdateRegisteredIds(handler, ids);
-}
-
-void FakeSyncNotifier::UnregisterHandler(SyncNotifierObserver* handler) {
- registrar_.UnregisterHandler(handler);
-}
-
-void FakeSyncNotifier::SetUniqueId(const std::string& unique_id) {
- unique_id_ = unique_id;
-}
-
-void FakeSyncNotifier::SetStateDeprecated(const std::string& state) {
- state_ = state;
-}
-
-void FakeSyncNotifier::UpdateCredentials(
- const std::string& email, const std::string& token) {
- email_ = email;
- token_ = token;
-}
-
-void FakeSyncNotifier::SendNotification(ModelTypeSet changed_types) {
- last_changed_types_ = changed_types;
-}
-
-} // namespace syncer
« no previous file with comments | « sync/notifier/fake_sync_notifier.h ('k') | sync/notifier/fake_sync_notifier_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698