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

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

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: remove task runnner Created 4 years, 3 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 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void SaveChanges() override; 98 void SaveChanges() override;
99 void ShutdownOnSyncThread(ShutdownReason reason) override; 99 void ShutdownOnSyncThread(ShutdownReason reason) override;
100 UserShare* GetUserShare() override; 100 UserShare* GetUserShare() override;
101 std::unique_ptr<syncer_v2::ModelTypeConnector> GetModelTypeConnectorProxy() 101 std::unique_ptr<syncer_v2::ModelTypeConnector> GetModelTypeConnectorProxy()
102 override; 102 override;
103 const std::string cache_guid() override; 103 const std::string cache_guid() override;
104 bool ReceivedExperiment(Experiments* experiments) override; 104 bool ReceivedExperiment(Experiments* experiments) override;
105 bool HasUnsyncedItems() override; 105 bool HasUnsyncedItems() override;
106 SyncEncryptionHandler* GetEncryptionHandler() override; 106 SyncEncryptionHandler* GetEncryptionHandler() override;
107 ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() override; 107 ScopedVector<syncer::ProtocolEvent> GetBufferedProtocolEvents() override;
108 std::unique_ptr<base::ListValue> GetAllNodesForType(
109 syncer::ModelType type) override;
110 void RefreshTypes(ModelTypeSet types) override; 108 void RefreshTypes(ModelTypeSet types) override;
111 void RegisterDirectoryTypeDebugInfoObserver( 109 void RegisterDirectoryTypeDebugInfoObserver(
112 syncer::TypeDebugInfoObserver* observer) override; 110 syncer::TypeDebugInfoObserver* observer) override;
113 void UnregisterDirectoryTypeDebugInfoObserver( 111 void UnregisterDirectoryTypeDebugInfoObserver(
114 syncer::TypeDebugInfoObserver* observer) override; 112 syncer::TypeDebugInfoObserver* observer) override;
115 bool HasDirectoryTypeDebugInfoObserver( 113 bool HasDirectoryTypeDebugInfoObserver(
116 syncer::TypeDebugInfoObserver* observer) override; 114 syncer::TypeDebugInfoObserver* observer) override;
117 void RequestEmitDebugInfo() override; 115 void RequestEmitDebugInfo() override;
118 void ClearServerData(const ClearServerDataCallback& callback) override; 116 void ClearServerData(const ClearServerDataCallback& callback) override;
119 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; 117 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override;
(...skipping 30 matching lines...) Expand all
150 148
151 // Number of invalidations received since startup. 149 // Number of invalidations received since startup.
152 int num_invalidations_received_; 150 int num_invalidations_received_;
153 151
154 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 152 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
155 }; 153 };
156 154
157 } // namespace syncer 155 } // namespace syncer
158 156
159 #endif // COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_ 157 #endif // COMPONENTS_SYNC_CORE_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698