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

Side by Side Diff: components/sync/test/fake_server/bookmark_entity.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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
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 #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
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
OLDNEW
« no previous file with comments | « components/sync/test/engine/test_syncable_utils.cc ('k') | components/sync/test/fake_server/bookmark_entity_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698