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

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

Issue 437683002: Wire sync shutdown reason from PSS all the way down to sync manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 ModelTypeSet to_purge, 107 ModelTypeSet to_purge,
108 ModelTypeSet to_journal, 108 ModelTypeSet to_journal,
109 ModelTypeSet to_unapply, 109 ModelTypeSet to_unapply,
110 const ModelSafeRoutingInfo& new_routing_info, 110 const ModelSafeRoutingInfo& new_routing_info,
111 const base::Closure& ready_task, 111 const base::Closure& ready_task,
112 const base::Closure& retry_task) OVERRIDE; 112 const base::Closure& retry_task) OVERRIDE;
113 virtual void AddObserver(Observer* observer) OVERRIDE; 113 virtual void AddObserver(Observer* observer) OVERRIDE;
114 virtual void RemoveObserver(Observer* observer) OVERRIDE; 114 virtual void RemoveObserver(Observer* observer) OVERRIDE;
115 virtual SyncStatus GetDetailedStatus() const OVERRIDE; 115 virtual SyncStatus GetDetailedStatus() const OVERRIDE;
116 virtual void SaveChanges() OVERRIDE; 116 virtual void SaveChanges() OVERRIDE;
117 virtual void ShutdownOnSyncThread() OVERRIDE; 117 virtual void ShutdownOnSyncThread(ShutdownReason reason) OVERRIDE;
118 virtual UserShare* GetUserShare() OVERRIDE; 118 virtual UserShare* GetUserShare() OVERRIDE;
119 virtual syncer::SyncContextProxy* GetSyncContextProxy() OVERRIDE; 119 virtual syncer::SyncContextProxy* GetSyncContextProxy() OVERRIDE;
120 virtual const std::string cache_guid() OVERRIDE; 120 virtual const std::string cache_guid() OVERRIDE;
121 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE; 121 virtual bool ReceivedExperiment(Experiments* experiments) OVERRIDE;
122 virtual bool HasUnsyncedItems() OVERRIDE; 122 virtual bool HasUnsyncedItems() OVERRIDE;
123 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE; 123 virtual SyncEncryptionHandler* GetEncryptionHandler() OVERRIDE;
124 virtual ScopedVector<syncer::ProtocolEvent> 124 virtual ScopedVector<syncer::ProtocolEvent>
125 GetBufferedProtocolEvents() OVERRIDE; 125 GetBufferedProtocolEvents() OVERRIDE;
126 virtual scoped_ptr<base::ListValue> GetAllNodesForType( 126 virtual scoped_ptr<base::ListValue> GetAllNodesForType(
127 syncer::ModelType type) OVERRIDE; 127 syncer::ModelType type) OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 TestUserShare test_user_share_; 165 TestUserShare test_user_share_;
166 166
167 NullSyncContextProxy null_sync_context_proxy_; 167 NullSyncContextProxy null_sync_context_proxy_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 169 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
170 }; 170 };
171 171
172 } // namespace syncer 172 } // namespace syncer
173 173
174 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 174 #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_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698