| OLD | NEW |
| 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 #include "components/sync/test/fake_server/bookmark_entity.h" | 5 #include "components/sync/test/fake_server/bookmark_entity.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 int64_t version, | 76 int64_t version, |
| 77 const string& name, | 77 const string& name, |
| 78 const string& originator_cache_guid, | 78 const string& originator_cache_guid, |
| 79 const string& originator_client_item_id, | 79 const string& originator_client_item_id, |
| 80 const sync_pb::UniquePosition& unique_position, | 80 const sync_pb::UniquePosition& unique_position, |
| 81 const sync_pb::EntitySpecifics& specifics, | 81 const sync_pb::EntitySpecifics& specifics, |
| 82 bool is_folder, | 82 bool is_folder, |
| 83 const string& parent_id, | 83 const string& parent_id, |
| 84 int64_t creation_time, | 84 int64_t creation_time, |
| 85 int64_t last_modified_time) | 85 int64_t last_modified_time) |
| 86 : FakeServerEntity(id, syncer::BOOKMARKS, version, name), | 86 : FakeServerEntity(id, string(), syncer::BOOKMARKS, version, name), |
| 87 originator_cache_guid_(originator_cache_guid), | 87 originator_cache_guid_(originator_cache_guid), |
| 88 originator_client_item_id_(originator_client_item_id), | 88 originator_client_item_id_(originator_client_item_id), |
| 89 unique_position_(unique_position), | 89 unique_position_(unique_position), |
| 90 is_folder_(is_folder), | 90 is_folder_(is_folder), |
| 91 parent_id_(parent_id), | 91 parent_id_(parent_id), |
| 92 creation_time_(creation_time), | 92 creation_time_(creation_time), |
| 93 last_modified_time_(last_modified_time) { | 93 last_modified_time_(last_modified_time) { |
| 94 SetSpecifics(specifics); | 94 SetSpecifics(specifics); |
| 95 } | 95 } |
| 96 | 96 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 118 | 118 |
| 119 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position(); | 119 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position(); |
| 120 unique_position->CopyFrom(unique_position_); | 120 unique_position->CopyFrom(unique_position_); |
| 121 } | 121 } |
| 122 | 122 |
| 123 bool BookmarkEntity::IsFolder() const { | 123 bool BookmarkEntity::IsFolder() const { |
| 124 return is_folder_; | 124 return is_folder_; |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace fake_server | 127 } // namespace fake_server |
| OLD | NEW |