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

Side by Side Diff: components/sync/engine_impl/test_entry_factory.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_ENGINE_IMPL_TEST_ENTRY_FACTORY_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_TEST_ENTRY_FACTORY_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_TEST_ENTRY_FACTORY_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_TEST_ENTRY_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 27 matching lines...) Expand all
38 38
39 // Create a new unapplied update without a parent. 39 // Create a new unapplied update without a parent.
40 int64_t CreateUnappliedNewItem(const std::string& item_id, 40 int64_t CreateUnappliedNewItem(const std::string& item_id,
41 const sync_pb::EntitySpecifics& specifics, 41 const sync_pb::EntitySpecifics& specifics,
42 bool is_unique); 42 bool is_unique);
43 43
44 // Create an unsynced unique_client_tag item in the database. If item_id is a 44 // Create an unsynced unique_client_tag item in the database. If item_id is a
45 // local ID, it will be treated as a create-new. Otherwise, if it's a server 45 // local ID, it will be treated as a create-new. Otherwise, if it's a server
46 // ID, we'll fake the server data so that it looks like it exists on the 46 // ID, we'll fake the server data so that it looks like it exists on the
47 // server. Returns the methandle of the created item in |metahandle_out| if 47 // server. Returns the methandle of the created item in |metahandle_out| if
48 // not NULL. 48 // not null.
49 void CreateUnsyncedItem(const syncable::Id& item_id, 49 void CreateUnsyncedItem(const syncable::Id& item_id,
50 const syncable::Id& parent_id, 50 const syncable::Id& parent_id,
51 const std::string& name, 51 const std::string& name,
52 bool is_folder, 52 bool is_folder,
53 ModelType model_type, 53 ModelType model_type,
54 int64_t* metahandle_out); 54 int64_t* metahandle_out);
55 55
56 // Creates a bookmark that is both unsynced an an unapplied update. Returns 56 // Creates a bookmark that is both unsynced an an unapplied update. Returns
57 // the metahandle of the created item. 57 // the metahandle of the created item.
58 int64_t CreateUnappliedAndUnsyncedBookmarkItem(const std::string& name); 58 int64_t CreateUnappliedAndUnsyncedBookmarkItem(const std::string& name);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 private: 127 private:
128 syncable::Directory* directory_; 128 syncable::Directory* directory_;
129 int64_t next_revision_; 129 int64_t next_revision_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(TestEntryFactory); 131 DISALLOW_COPY_AND_ASSIGN(TestEntryFactory);
132 }; 132 };
133 133
134 } // namespace syncer 134 } // namespace syncer
135 135
136 #endif // COMPONENTS_SYNC_ENGINE_IMPL_TEST_ENTRY_FACTORY_H_ 136 #endif // COMPONENTS_SYNC_ENGINE_IMPL_TEST_ENTRY_FACTORY_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/syncer_unittest.cc ('k') | components/sync/model/fake_syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698