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

Side by Side Diff: components/sync/test/engine/fake_sync_scheduler.h

Issue 2425673003: [Sync] Moved down comments directly following copyright. (Closed)
Patch Set: Updates for Max. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 //
5 // A fake implementation of the SyncScheduler. If needed, we should add default
6 // logic needed for tests (invoking callbacks, etc) here rather than in higher
7 // level test classes.
8 4
9 #ifndef COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 5 #ifndef COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
10 #define COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 6 #define COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
11 7
12 #include <map> 8 #include <map>
13 #include <memory> 9 #include <memory>
14 10
15 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
16 #include "components/sync/engine_impl/sync_scheduler.h" 12 #include "components/sync/engine_impl/sync_scheduler.h"
17 13
18 namespace syncer { 14 namespace syncer {
19 15
16 // A fake implementation of the SyncScheduler. If needed, we should add default
17 // logic needed for tests (invoking callbacks, etc) here rather than in higher
18 // level test classes.
20 class FakeSyncScheduler : public SyncScheduler { 19 class FakeSyncScheduler : public SyncScheduler {
21 public: 20 public:
22 FakeSyncScheduler(); 21 FakeSyncScheduler();
23 ~FakeSyncScheduler() override; 22 ~FakeSyncScheduler() override;
24 23
25 void Start(Mode mode, base::Time last_poll_time) override; 24 void Start(Mode mode, base::Time last_poll_time) override;
26 void Stop() override; 25 void Stop() override;
27 void ScheduleLocalNudge( 26 void ScheduleLocalNudge(
28 ModelTypeSet types, 27 ModelTypeSet types,
29 const tracked_objects::Location& nudge_location) override; 28 const tracked_objects::Location& nudge_location) override;
(...skipping 26 matching lines...) Expand all
56 const std::map<ModelType, base::TimeDelta>& nudge_delays) override; 55 const std::map<ModelType, base::TimeDelta>& nudge_delays) override;
57 void OnReceivedClientInvalidationHintBufferSize(int size) override; 56 void OnReceivedClientInvalidationHintBufferSize(int size) override;
58 void OnSyncProtocolError(const SyncProtocolError& error) override; 57 void OnSyncProtocolError(const SyncProtocolError& error) override;
59 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override; 58 void OnReceivedGuRetryDelay(const base::TimeDelta& delay) override;
60 void OnReceivedMigrationRequest(ModelTypeSet types) override; 59 void OnReceivedMigrationRequest(ModelTypeSet types) override;
61 }; 60 };
62 61
63 } // namespace syncer 62 } // namespace syncer
64 63
65 #endif // COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 64 #endif // COMPONENTS_SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
OLDNEW
« no previous file with comments | « components/sync/syncable/test_user_share.h ('k') | components/sync/test/engine/mock_connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698