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

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

Issue 2502253003: [Sync] Move GenerateSyncableHash to base. (Closed)
Patch Set: Keep full syncable/ DEP. Created 4 years, 1 month 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_builder.h" 5 #include "components/sync/test/fake_server/bookmark_entity_builder.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/guid.h" 9 #include "base/guid.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "components/sync/base/hash_util.h"
12 #include "components/sync/base/time.h" 13 #include "components/sync/base/time.h"
13 #include "components/sync/base/unique_position.h" 14 #include "components/sync/base/unique_position.h"
14 #include "components/sync/protocol/sync.pb.h" 15 #include "components/sync/protocol/sync.pb.h"
15 #include "components/sync/syncable/syncable_util.h"
16 #include "components/sync/test/fake_server/bookmark_entity.h" 16 #include "components/sync/test/fake_server/bookmark_entity.h"
17 17
18 using std::string; 18 using std::string;
19 using syncer::syncable::GenerateSyncableBookmarkHash; 19 using syncer::GenerateSyncableBookmarkHash;
20 20
21 // A version must be passed when creating a FakeServerEntity, but this value 21 // A version must be passed when creating a FakeServerEntity, but this value
22 // is overrideen immediately when saving the entity in FakeServer. 22 // is overrideen immediately when saving the entity in FakeServer.
23 const int64_t kUnusedVersion = 0L; 23 const int64_t kUnusedVersion = 0L;
24 24
25 // Default time (creation and last modified) used when creating entities. 25 // Default time (creation and last modified) used when creating entities.
26 const int64_t kDefaultTime = 1234L; 26 const int64_t kDefaultTime = 1234L;
27 27
28 namespace fake_server { 28 namespace fake_server {
29 29
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 const string id = 87 const string id =
88 FakeServerEntity::CreateId(syncer::BOOKMARKS, base::GenerateGUID()); 88 FakeServerEntity::CreateId(syncer::BOOKMARKS, base::GenerateGUID());
89 89
90 return base::WrapUnique<FakeServerEntity>(new BookmarkEntity( 90 return base::WrapUnique<FakeServerEntity>(new BookmarkEntity(
91 id, kUnusedVersion, title_, originator_cache_guid_, 91 id, kUnusedVersion, title_, originator_cache_guid_,
92 originator_client_item_id_, unique_position, entity_specifics, is_folder, 92 originator_client_item_id_, unique_position, entity_specifics, is_folder,
93 parent_id_, kDefaultTime, kDefaultTime)); 93 parent_id_, kDefaultTime, kDefaultTime));
94 } 94 }
95 95
96 } // namespace fake_server 96 } // namespace fake_server
OLDNEW
« no previous file with comments | « components/sync/syncable/write_node.cc ('k') | components/sync/test/fake_server/unique_client_entity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698