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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. 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
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
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
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