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

Side by Side Diff: sync/test/fake_server/bookmark_entity.h

Issue 319823002: Remove redundant param from Sync FakeServer infra (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | sync/test/fake_server/bookmark_entity.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FAKE_SERVER_BOOKMARK_ENTITY_H_ 5 #ifndef SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_H_
6 #define SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_H_ 6 #define SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 // Factory function for BookmarkEntity. The server's current entity for this 30 // Factory function for BookmarkEntity. The server's current entity for this
31 // ID, |current_server_entity|, is passed here because the client does not 31 // ID, |current_server_entity|, is passed here because the client does not
32 // always send the complete entity over the wire. This requires copying of 32 // always send the complete entity over the wire. This requires copying of
33 // some of the existing entity when creating a new entity. 33 // some of the existing entity when creating a new entity.
34 static FakeServerEntity* CreateUpdatedVersion( 34 static FakeServerEntity* CreateUpdatedVersion(
35 const sync_pb::SyncEntity& client_entity, 35 const sync_pb::SyncEntity& client_entity,
36 FakeServerEntity* current_server_entity, 36 FakeServerEntity* current_server_entity,
37 const std::string& parent_id); 37 const std::string& parent_id);
38 38
39 BookmarkEntity(const std::string& id, 39 BookmarkEntity(const std::string& id,
40 const syncer::ModelType& model_type,
41 int64 version, 40 int64 version,
42 const std::string& name, 41 const std::string& name,
43 const std::string& originator_cache_guid, 42 const std::string& originator_cache_guid,
44 const std::string& originator_client_item_id, 43 const std::string& originator_client_item_id,
45 const sync_pb::UniquePosition& unique_position, 44 const sync_pb::UniquePosition& unique_position,
46 const sync_pb::EntitySpecifics& specifics, 45 const sync_pb::EntitySpecifics& specifics,
47 bool is_folder, 46 bool is_folder,
48 const std::string& parent_id, 47 const std::string& parent_id,
49 int64 creation_time, 48 int64 creation_time,
50 int64 last_modified_time); 49 int64 last_modified_time);
(...skipping 12 matching lines...) Expand all
63 sync_pb::EntitySpecifics specifics_; 62 sync_pb::EntitySpecifics specifics_;
64 bool is_folder_; 63 bool is_folder_;
65 std::string parent_id_; 64 std::string parent_id_;
66 int64 creation_time_; 65 int64 creation_time_;
67 int64 last_modified_time_; 66 int64 last_modified_time_;
68 }; 67 };
69 68
70 } // namespace fake_server 69 } // namespace fake_server
71 70
72 #endif // SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_H_ 71 #endif // SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_H_
OLDNEW
« no previous file with comments | « no previous file | sync/test/fake_server/bookmark_entity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698