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

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

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
« no previous file with comments | « sync/sync.gyp ('k') | sync/test/engine/fake_sync_scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 4 //
5 // A fake implementation of the SyncScheduler. If needed, we should add default 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 6 // logic needed for tests (invoking callbacks, etc) here rather than in higher
7 // level test classes. 7 // level test classes.
8 8
9 #ifndef SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 9 #ifndef SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
10 #define SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 10 #define SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
(...skipping 10 matching lines...) Expand all
21 21
22 virtual void Start(Mode mode) OVERRIDE; 22 virtual void Start(Mode mode) OVERRIDE;
23 virtual void RequestStop(const base::Closure& callback) OVERRIDE; 23 virtual void RequestStop(const base::Closure& callback) OVERRIDE;
24 virtual void ScheduleNudgeAsync( 24 virtual void ScheduleNudgeAsync(
25 const base::TimeDelta& delay, 25 const base::TimeDelta& delay,
26 NudgeSource source, 26 NudgeSource source,
27 ModelTypeSet types, 27 ModelTypeSet types,
28 const tracked_objects::Location& nudge_location) OVERRIDE; 28 const tracked_objects::Location& nudge_location) OVERRIDE;
29 virtual void ScheduleNudgeWithStatesAsync( 29 virtual void ScheduleNudgeWithStatesAsync(
30 const base::TimeDelta& delay, NudgeSource source, 30 const base::TimeDelta& delay, NudgeSource source,
31 const ModelTypeStateMap& type_state_map, 31 const ModelTypeInvalidationMap& invalidation_map,
32 const tracked_objects::Location& nudge_location) OVERRIDE; 32 const tracked_objects::Location& nudge_location) OVERRIDE;
33 virtual bool ScheduleConfiguration( 33 virtual bool ScheduleConfiguration(
34 const ConfigurationParams& params) OVERRIDE; 34 const ConfigurationParams& params) OVERRIDE;
35 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE; 35 virtual void SetNotificationsEnabled(bool notifications_enabled) OVERRIDE;
36 36
37 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE; 37 virtual base::TimeDelta GetSessionsCommitDelay() const OVERRIDE;
38 virtual void OnCredentialsUpdated() OVERRIDE; 38 virtual void OnCredentialsUpdated() OVERRIDE;
39 virtual void OnConnectionStatusChange() OVERRIDE; 39 virtual void OnConnectionStatusChange() OVERRIDE;
40 40
41 // SyncSession::Delegate implementation. 41 // SyncSession::Delegate implementation.
(...skipping 10 matching lines...) Expand all
52 virtual void OnSyncProtocolError( 52 virtual void OnSyncProtocolError(
53 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; 53 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE;
54 54
55 private: 55 private:
56 MessageLoop* const created_on_loop_; 56 MessageLoop* const created_on_loop_;
57 }; 57 };
58 58
59 } // namespace syncer 59 } // namespace syncer
60 60
61 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_ 61 #endif // SYNC_TEST_ENGINE_FAKE_SYNC_SCHEDULER_H_
OLDNEW
« no previous file with comments | « sync/sync.gyp ('k') | sync/test/engine/fake_sync_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698