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

Side by Side Diff: components/sync/model/fake_syncable_service.h

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 years, 2 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_MODEL_FAKE_SYNCABLE_SERVICE_H_ 5 #ifndef COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_
6 #define COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_ 6 #define COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "components/sync/model/syncable_service.h" 10 #include "components/sync/model/syncable_service.h"
(...skipping 10 matching lines...) Expand all
21 ~FakeSyncableService() override; 21 ~FakeSyncableService() override;
22 22
23 // Setters for SyncableService implementation results. 23 // Setters for SyncableService implementation results.
24 void set_merge_data_and_start_syncing_error(const SyncError& error); 24 void set_merge_data_and_start_syncing_error(const SyncError& error);
25 void set_process_sync_changes_error(const SyncError& error); 25 void set_process_sync_changes_error(const SyncError& error);
26 26
27 // Setter for AttachmentStore. 27 // Setter for AttachmentStore.
28 void set_attachment_store(std::unique_ptr<AttachmentStore> attachment_store); 28 void set_attachment_store(std::unique_ptr<AttachmentStore> attachment_store);
29 29
30 // AttachmentService should be set when this syncable service is connected, 30 // AttachmentService should be set when this syncable service is connected,
31 // just before MergeDataAndStartSyncing. NULL is returned by default. 31 // just before MergeDataAndStartSyncing. Null is returned by default.
32 const AttachmentService* attachment_service() const; 32 const AttachmentService* attachment_service() const;
33 33
34 // Whether we're syncing or not. Set on a successful MergeDataAndStartSyncing, 34 // Whether we're syncing or not. Set on a successful MergeDataAndStartSyncing,
35 // unset on StopSyncing. False by default. 35 // unset on StopSyncing. False by default.
36 bool syncing() const; 36 bool syncing() const;
37 37
38 // SyncableService implementation. 38 // SyncableService implementation.
39 SyncMergeResult MergeDataAndStartSyncing( 39 SyncMergeResult MergeDataAndStartSyncing(
40 ModelType type, 40 ModelType type,
41 const SyncDataList& initial_sync_data, 41 const SyncDataList& initial_sync_data,
(...skipping 13 matching lines...) Expand all
55 SyncError process_sync_changes_error_; 55 SyncError process_sync_changes_error_;
56 bool syncing_; 56 bool syncing_;
57 ModelType type_; 57 ModelType type_;
58 std::unique_ptr<AttachmentStore> attachment_store_; 58 std::unique_ptr<AttachmentStore> attachment_store_;
59 std::unique_ptr<AttachmentService> attachment_service_; 59 std::unique_ptr<AttachmentService> attachment_service_;
60 }; 60 };
61 61
62 } // namespace syncer 62 } // namespace syncer
63 63
64 #endif // COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_ 64 #endif // COMPONENTS_SYNC_MODEL_FAKE_SYNCABLE_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/test_entry_factory.h ('k') | components/sync/model/syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698