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

Side by Side Diff: sync/internal_api/public/test/fake_sync_manager.h

Issue 1253743003: [Sync] Update SyncBackendHost to forward ClearServerData to SyncManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clearserverdatacommand
Patch Set: Remove unused callback variable Created 5 years, 4 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 | « sync/internal_api/public/sync_manager.h ('k') | sync/internal_api/sync_backup_manager.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 SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 scoped_ptr<base::ListValue> GetAllNodesForType( 108 scoped_ptr<base::ListValue> GetAllNodesForType(
109 syncer::ModelType type) override; 109 syncer::ModelType type) override;
110 void RefreshTypes(ModelTypeSet types) override; 110 void RefreshTypes(ModelTypeSet types) override;
111 void RegisterDirectoryTypeDebugInfoObserver( 111 void RegisterDirectoryTypeDebugInfoObserver(
112 syncer::TypeDebugInfoObserver* observer) override; 112 syncer::TypeDebugInfoObserver* observer) override;
113 void UnregisterDirectoryTypeDebugInfoObserver( 113 void UnregisterDirectoryTypeDebugInfoObserver(
114 syncer::TypeDebugInfoObserver* observer) override; 114 syncer::TypeDebugInfoObserver* observer) override;
115 bool HasDirectoryTypeDebugInfoObserver( 115 bool HasDirectoryTypeDebugInfoObserver(
116 syncer::TypeDebugInfoObserver* observer) override; 116 syncer::TypeDebugInfoObserver* observer) override;
117 void RequestEmitDebugInfo() override; 117 void RequestEmitDebugInfo() override;
118 void ClearServerData(const ClearServerDataCallback& callback) override;
118 119
119 private: 120 private:
120 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; 121 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_;
121 122
122 base::ObserverList<SyncManager::Observer> observers_; 123 base::ObserverList<SyncManager::Observer> observers_;
123 124
124 // Faked directory state. 125 // Faked directory state.
125 ModelTypeSet initial_sync_ended_types_; 126 ModelTypeSet initial_sync_ended_types_;
126 ModelTypeSet progress_marker_types_; 127 ModelTypeSet progress_marker_types_;
127 128
(...skipping 19 matching lines...) Expand all
147 TestUserShare test_user_share_; 148 TestUserShare test_user_share_;
148 149
149 NullSyncContextProxy null_sync_context_proxy_; 150 NullSyncContextProxy null_sync_context_proxy_;
150 151
151 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 152 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
152 }; 153 };
153 154
154 } // namespace syncer 155 } // namespace syncer
155 156
156 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 157 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sync_manager.h ('k') | sync/internal_api/sync_backup_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698