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

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: Fix tools and iOS. 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/guid.h" 11 #include "base/guid.h"
12 #include "components/sync/base/model_type.h" 12 #include "components/sync/base/model_type.h"
13 #include "components/sync/protocol/sync.pb.h" 13 #include "components/sync/protocol/sync.pb.h"
14 #include "components/sync/test/fake_server/fake_server_entity.h" 14 #include "components/sync/test/fake_server/fake_server_entity.h"
15 15
16 using std::string; 16 using std::string;
17 17
18 namespace fake_server { 18 namespace fake_server {
19
20 namespace { 19 namespace {
21 20
22 // Returns true if and only if |client_entity| is a bookmark. 21 // Returns true if and only if |client_entity| is a bookmark.
23 bool IsBookmark(const sync_pb::SyncEntity& client_entity) { 22 bool IsBookmark(const sync_pb::SyncEntity& client_entity) {
24 return syncer::GetModelType(client_entity) == syncer::BOOKMARKS; 23 return syncer::GetModelType(client_entity) == syncer::BOOKMARKS;
25 } 24 }
26 25
27 } // namespace 26 } // namespace
28 27
29 BookmarkEntity::~BookmarkEntity() {} 28 BookmarkEntity::~BookmarkEntity() {}
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 117
119 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position(); 118 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position();
120 unique_position->CopyFrom(unique_position_); 119 unique_position->CopyFrom(unique_position_);
121 } 120 }
122 121
123 bool BookmarkEntity::IsFolder() const { 122 bool BookmarkEntity::IsFolder() const {
124 return is_folder_; 123 return is_folder_;
125 } 124 }
126 125
127 } // namespace fake_server 126 } // namespace fake_server
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698