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

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

Issue 159773006: [invalidations] Added table with registered objectsIds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@about_invalidations_clean
Patch Set: Change constness of iterators for android clang Created 6 years, 10 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 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // GetAndResetConfigureReason, or since startup if never called. 61 // GetAndResetConfigureReason, or since startup if never called.
62 ConfigureReason GetAndResetConfigureReason(); 62 ConfigureReason GetAndResetConfigureReason();
63 63
64 // Posts a method to invalidate the given IDs on the sync thread. 64 // Posts a method to invalidate the given IDs on the sync thread.
65 virtual void OnIncomingInvalidation( 65 virtual void OnIncomingInvalidation(
66 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; 66 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
67 67
68 // Posts a method to update the invalidator state on the sync thread. 68 // Posts a method to update the invalidator state on the sync thread.
69 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; 69 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE;
70 70
71 // Returns this class name for logging purposes.
72 virtual std::string GetOwnerName() const OVERRIDE;
73
71 // Block until the sync thread has finished processing any pending messages. 74 // Block until the sync thread has finished processing any pending messages.
72 void WaitForSyncThread(); 75 void WaitForSyncThread();
73 76
74 // SyncManager implementation. 77 // SyncManager implementation.
75 // Note: we treat whatever message loop this is called from as the sync 78 // Note: we treat whatever message loop this is called from as the sync
76 // loop for purposes of callbacks. 79 // loop for purposes of callbacks.
77 virtual void Init( 80 virtual void Init(
78 const base::FilePath& database_location, 81 const base::FilePath& database_location,
79 const WeakHandle<JsEventHandler>& event_handler, 82 const WeakHandle<JsEventHandler>& event_handler,
80 const std::string& sync_server_and_path, 83 const std::string& sync_server_and_path,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; 157 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_;
155 158
156 TestUserShare test_user_share_; 159 TestUserShare test_user_share_;
157 160
158 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 161 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
159 }; 162 };
160 163
161 } // namespace syncer 164 } // namespace syncer
162 165
163 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 166 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/test/data/webui/about_invalidations_browsertest.js ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698