| 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 "base/guid.h" | 7 #include "base/guid.h" |
| 8 | 8 |
| 9 using std::string; | 9 using std::string; |
| 10 | 10 |
| 11 namespace fake_server { | 11 namespace fake_server { |
| 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 // Returns true if and only if |client_entity| is a bookmark. | 15 // Returns true if and only if |client_entity| is a bookmark. |
| 15 bool IsBookmark(const sync_pb::SyncEntity& client_entity) { | 16 bool IsBookmark(const sync_pb::SyncEntity& client_entity) { |
| 16 return syncer::GetModelType(client_entity) == syncer::BOOKMARKS; | 17 return syncer::GetModelType(client_entity) == syncer::BOOKMARKS; |
| 17 } | 18 } |
| 18 | 19 |
| 19 } // namespace | 20 } // namespace |
| 20 | 21 |
| 21 BookmarkEntity::~BookmarkEntity() {} | 22 BookmarkEntity::~BookmarkEntity() {} |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position(); | 112 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position(); |
| 112 unique_position->CopyFrom(unique_position_); | 113 unique_position->CopyFrom(unique_position_); |
| 113 } | 114 } |
| 114 | 115 |
| 115 bool BookmarkEntity::IsFolder() const { | 116 bool BookmarkEntity::IsFolder() const { |
| 116 return is_folder_; | 117 return is_folder_; |
| 117 } | 118 } |
| 118 | 119 |
| 119 } // namespace fake_server | 120 } // namespace fake_server |
| OLD | NEW |