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

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

Issue 11474036: Remove initial_sync_ended bits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase Created 8 years 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_TEST_TEST_ENTRY_FACTORY_H_ 5 #ifndef SYNC_TEST_TEST_ENTRY_FACTORY_H_
6 #define SYNC_TEST_TEST_ENTRY_FACTORY_H_ 6 #define SYNC_TEST_TEST_ENTRY_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // metahandle of the created item. 49 // metahandle of the created item.
50 int64 CreateUnappliedAndUnsyncedItem(const std::string& name, 50 int64 CreateUnappliedAndUnsyncedItem(const std::string& name,
51 ModelType model_type); 51 ModelType model_type);
52 52
53 // Creates an item that has neither IS_UNSYNED or IS_UNAPPLIED_UPDATE. The 53 // Creates an item that has neither IS_UNSYNED or IS_UNAPPLIED_UPDATE. The
54 // item is known to both the server and client. Returns the metahandle of 54 // item is known to both the server and client. Returns the metahandle of
55 // the created item. 55 // the created item.
56 int64 CreateSyncedItem(const std::string& name, 56 int64 CreateSyncedItem(const std::string& name,
57 ModelType model_type, bool is_folder); 57 ModelType model_type, bool is_folder);
58 58
59 // Creates a root node that IS_UNAPPLIED. Smiilar to what one would find in
60 // the database between the ProcessUpdates of an initial datatype configure
61 // cycle and the ApplyUpdates step of the same sync cycle.
62 int64 CreateUnappliedRootNode(ModelType model_type);
63
59 // Looks up the item referenced by |meta_handle|. If successful, overwrites 64 // Looks up the item referenced by |meta_handle|. If successful, overwrites
60 // the server specifics with |specifics|, sets 65 // the server specifics with |specifics|, sets
61 // IS_UNAPPLIED_UPDATES/IS_UNSYNCED appropriately, and returns true. 66 // IS_UNAPPLIED_UPDATES/IS_UNSYNCED appropriately, and returns true.
62 // Else, return false. 67 // Else, return false.
63 bool SetServerSpecificsForItem(int64 meta_handle, 68 bool SetServerSpecificsForItem(int64 meta_handle,
64 const sync_pb::EntitySpecifics specifics); 69 const sync_pb::EntitySpecifics specifics);
65 70
66 // Looks up the item referenced by |meta_handle|. If successful, overwrites 71 // Looks up the item referenced by |meta_handle|. If successful, overwrites
67 // the local specifics with |specifics|, sets 72 // the local specifics with |specifics|, sets
68 // IS_UNAPPLIED_UPDATES/IS_UNSYNCED appropriately, and returns true. 73 // IS_UNAPPLIED_UPDATES/IS_UNSYNCED appropriately, and returns true.
(...skipping 20 matching lines...) Expand all
89 private: 94 private:
90 syncable::Directory* directory_; 95 syncable::Directory* directory_;
91 int64 next_revision_; 96 int64 next_revision_;
92 97
93 DISALLOW_COPY_AND_ASSIGN(TestEntryFactory); 98 DISALLOW_COPY_AND_ASSIGN(TestEntryFactory);
94 }; 99 };
95 100
96 } // namespace syncer 101 } // namespace syncer
97 102
98 #endif // SYNC_TEST_TEST_ENTRY_FACTORY_H_ 103 #endif // SYNC_TEST_TEST_ENTRY_FACTORY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sessions/sync_session_snapshot_unittest.cc ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698