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

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

Issue 212603007: sync: Buffer Protocol Events for about:sync page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 virtual void AddObserver(Observer* observer) OVERRIDE; 116 virtual void AddObserver(Observer* observer) OVERRIDE;
117 virtual void RemoveObserver(Observer* observer) OVERRIDE; 117 virtual void RemoveObserver(Observer* observer) OVERRIDE;
118 virtual SyncStatus GetDetailedStatus() const OVERRIDE; 118 virtual SyncStatus GetDetailedStatus() const OVERRIDE;
119 virtual void SaveChanges() OVERRIDE; 119 virtual void SaveChanges() OVERRIDE;
120 virtual void ShutdownOnSyncThread() OVERRIDE; 120 virtual void ShutdownOnSyncThread() OVERRIDE;
121 virtual UserShare* GetUserShare() OVERRIDE; 121 virtual UserShare* GetUserShare() OVERRIDE;
122 virtual const std::string cache_guid() OVERRIDE; 122 virtual const std::string cache_guid() OVERRIDE;
123 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; 123 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE;
124 virtual bool HasUnsyncedItems() OVERRIDE; 124 virtual bool HasUnsyncedItems() OVERRIDE;
125 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; 125 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE;
126 virtual ScopedVector<syncer::ProtocolEvent>
127 GetBufferedProtocolEvents() OVERRIDE;
126 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE; 128 virtual void RefreshTypes(ModelTypeSet types) OVERRIDE;
127 129
128 private: 130 private:
129 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; 131 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_;
130 132
131 ObserverList<SyncManager::Observer> observers_; 133 ObserverList<SyncManager::Observer> observers_;
132 134
133 // Faked directory state. 135 // Faked directory state.
134 ModelTypeSet initial_sync_ended_types_; 136 ModelTypeSet initial_sync_ended_types_;
135 ModelTypeSet progress_marker_types_; 137 ModelTypeSet progress_marker_types_;
(...skipping 21 matching lines...) Expand all
157 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; 159 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
158 160
159 TestUserShare test_user_share_; 161 TestUserShare test_user_share_;
160 162
161 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 163 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
162 }; 164 };
163 165
164 } // namespace syncer 166 } // namespace syncer
165 167
166 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 168 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698