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

Side by Side Diff: components/sync/core/test/fake_sync_manager.h

Issue 2382443006: Sync MDP: implement MemoryDumpProvider
Patch Set: 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
« no previous file with comments | « components/sync/core/sync_manager.h ('k') | components/sync/core_impl/sync_manager_impl.h » ('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 #ifndef COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ 5 #ifndef COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_
6 #define COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ 6 #define COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 const ModelSafeRoutingInfo& new_routing_info, 88 const ModelSafeRoutingInfo& new_routing_info,
89 const base::Closure& ready_task, 89 const base::Closure& ready_task,
90 const base::Closure& retry_task) override; 90 const base::Closure& retry_task) override;
91 void OnIncomingInvalidation( 91 void OnIncomingInvalidation(
92 syncer::ModelType type, 92 syncer::ModelType type,
93 std::unique_ptr<InvalidationInterface> interface) override; 93 std::unique_ptr<InvalidationInterface> interface) override;
94 void SetInvalidatorEnabled(bool invalidator_enabled) override; 94 void SetInvalidatorEnabled(bool invalidator_enabled) override;
95 void AddObserver(Observer* observer) override; 95 void AddObserver(Observer* observer) override;
96 void RemoveObserver(Observer* observer) override; 96 void RemoveObserver(Observer* observer) override;
97 SyncStatus GetDetailedStatus() const override; 97 SyncStatus GetDetailedStatus() const override;
98 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd) override;
98 void SaveChanges() override; 99 void SaveChanges() override;
99 void ShutdownOnSyncThread(ShutdownReason reason) override; 100 void ShutdownOnSyncThread(ShutdownReason reason) override;
100 UserShare* GetUserShare() override; 101 UserShare* GetUserShare() override;
101 std::unique_ptr<syncer_v2::ModelTypeConnector> GetModelTypeConnectorProxy() 102 std::unique_ptr<syncer_v2::ModelTypeConnector> GetModelTypeConnectorProxy()
102 override; 103 override;
103 const std::string cache_guid() override; 104 const std::string cache_guid() override;
104 bool ReceivedExperiment(Experiments* experiments) override; 105 bool ReceivedExperiment(Experiments* experiments) override;
105 bool HasUnsyncedItems() override; 106 bool HasUnsyncedItems() override;
106 SyncEncryptionHandler* GetEncryptionHandler() override; 107 SyncEncryptionHandler* GetEncryptionHandler() override;
107 std::vector<std::unique_ptr<ProtocolEvent>> GetBufferedProtocolEvents() 108 std::vector<std::unique_ptr<ProtocolEvent>> GetBufferedProtocolEvents()
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 150
150 // Number of invalidations received since startup. 151 // Number of invalidations received since startup.
151 int num_invalidations_received_; 152 int num_invalidations_received_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 154 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
154 }; 155 };
155 156
156 } // namespace syncer 157 } // namespace syncer
157 158
158 #endif // COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ 159 #endif // COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « components/sync/core/sync_manager.h ('k') | components/sync/core_impl/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698