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

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

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix indent Created 8 years, 5 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_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 24 matching lines...) Expand all
35 bool is_unique); 35 bool is_unique);
36 36
37 // Create an unsynced item in the database. If item_id is a local ID, it will 37 // Create an unsynced item in the database. If item_id is a local ID, it will
38 // be treated as a create-new. Otherwise, if it's a server ID, we'll fake the 38 // be treated as a create-new. Otherwise, if it's a server ID, we'll fake the
39 // server data so that it looks like it exists on the server. Returns the 39 // server data so that it looks like it exists on the server. Returns the
40 // methandle of the created item in |metahandle_out| if not NULL. 40 // methandle of the created item in |metahandle_out| if not NULL.
41 void CreateUnsyncedItem(const syncable::Id& item_id, 41 void CreateUnsyncedItem(const syncable::Id& item_id,
42 const syncable::Id& parent_id, 42 const syncable::Id& parent_id,
43 const std::string& name, 43 const std::string& name,
44 bool is_folder, 44 bool is_folder,
45 syncer::ModelType model_type, 45 ModelType model_type,
46 int64* metahandle_out); 46 int64* metahandle_out);
47 47
48 // Creates an item that is both unsynced an an unapplied update. Returns the 48 // Creates an item that is both unsynced an an unapplied update. Returns the
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 syncer::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, syncer::ModelType 56 int64 CreateSyncedItem(const std::string& name,
57 model_type, bool is_folder); 57 ModelType model_type, bool is_folder);
58 58
59 int64 GetNextRevision(); 59 int64 GetNextRevision();
60 60
61 private: 61 private:
62 syncable::Directory* directory_; 62 syncable::Directory* directory_;
63 int64 next_revision_; 63 int64 next_revision_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(TestEntryFactory); 65 DISALLOW_COPY_AND_ASSIGN(TestEntryFactory);
66 }; 66 };
67 67
68 } // namespace syncer 68 } // namespace syncer
69 69
70 #endif // SYNC_TEST_TEST_ENTRY_FACTORY_H_ 70 #endif // SYNC_TEST_TEST_ENTRY_FACTORY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/public/test/test_internal_components_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698