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

Unified Diff: sync/test/engine/fake_sync_scheduler.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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/test/engine/fake_model_worker.cc ('k') | sync/test/engine/fake_sync_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/fake_sync_scheduler.h
diff --git a/sync/test/engine/fake_sync_scheduler.h b/sync/test/engine/fake_sync_scheduler.h
deleted file mode 100644
index 0933ba8fce3768840a3ece8b04f1964143e2b48a..0000000000000000000000000000000000000000
--- a/sync/test/engine/fake_sync_scheduler.h
+++ /dev/null
@@ -1,64 +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.
-//
-// A fake implementation of the SyncScheduler. If needed, we should add default
-// logic needed for tests (invoking callbacks, etc) here rather than in higher
-// level test classes.
-
-#ifndef SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
-#define SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
-
-#include <map>
-
-#include "base/message_loop/message_loop.h"
-#include "sync/engine/sync_scheduler.h"
-
-namespace syncer {
-
-class FakeSyncScheduler : public SyncScheduler {
- public:
- FakeSyncScheduler();
- ~FakeSyncScheduler() override;
-
- void Start(Mode mode, base::Time last_poll_time) override;
- void Stop() override;
- void ScheduleLocalNudge(
- ModelTypeSet types,
- const tracked_objects::Location& nudge_location) override;
- void ScheduleLocalRefreshRequest(
- ModelTypeSet types,
- const tracked_objects::Location& nudge_location) override;
- void ScheduleInvalidationNudge(
- syncer::ModelType type,
- std::unique_ptr<InvalidationInterface> interface,
- const tracked_objects::Location& nudge_location) override;
- void ScheduleConfiguration(const ConfigurationParams& params) override;
- void ScheduleClearServerData(const ClearParams& params) override;
-
- void ScheduleInitialSyncNudge(syncer::ModelType model_type) override;
- void SetNotificationsEnabled(bool notifications_enabled) override;
-
- void OnCredentialsUpdated() override;
- void OnConnectionStatusChange() override;
-
- // SyncSession::Delegate implementation.
- void OnThrottled(const base::TimeDelta& throttle_duration) override;
- void OnTypesThrottled(ModelTypeSet types,
- const base::TimeDelta& throttle_duration) override;
- bool IsCurrentlyThrottled() override;
- void OnReceivedShortPollIntervalUpdate(
- const base::TimeDelta& new_interval) override;
- void OnReceivedLongPollIntervalUpdate(
- const base::TimeDelta& new_interval) override;
- void OnReceivedCustomNudgeDelays(
- const std::map<ModelType, base::TimeDelta>& nudge_delays) override;
- void OnReceivedClientInvalidationHintBufferSize(int size) override;
- void OnSyncProtocolError(const SyncProtocolError& error) override;
- void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override;
- void OnReceivedMigrationRequest(ModelTypeSet types) override;
-};
-
-} // namespace syncer
-
-#endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
« no previous file with comments | « sync/test/engine/fake_model_worker.cc ('k') | sync/test/engine/fake_sync_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698