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