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 "sync/test/fake_server/bookmark_entity_builder.h" | 5 #include "sync/test/fake_server/bookmark_entity_builder.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/guid.h" | 11 #include "base/guid.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/time/time.h" | 13 #include "base/time/time.h" |
12 #include "sync/internal_api/public/base/model_type.h" | 14 #include "sync/internal_api/public/base/model_type.h" |
13 #include "sync/internal_api/public/base/unique_position.h" | 15 #include "sync/internal_api/public/base/unique_position.h" |
14 #include "sync/protocol/sync.pb.h" | 16 #include "sync/protocol/sync.pb.h" |
15 #include "sync/syncable/syncable_util.h" | 17 #include "sync/syncable/syncable_util.h" |
16 #include "sync/test/fake_server/bookmark_entity.h" | 18 #include "sync/test/fake_server/bookmark_entity.h" |
17 #include "sync/test/fake_server/fake_server_entity.h" | 19 #include "sync/test/fake_server/fake_server_entity.h" |
18 #include "sync/util/time.h" | 20 #include "sync/util/time.h" |
19 #include "url/gurl.h" | 21 #include "url/gurl.h" |
20 | 22 |
21 using std::string; | 23 using std::string; |
22 | 24 |
23 using syncer::syncable::GenerateSyncableBookmarkHash; | 25 using syncer::syncable::GenerateSyncableBookmarkHash; |
24 | 26 |
25 // A version must be passed when creating a FakeServerEntity, but this value | 27 // A version must be passed when creating a FakeServerEntity, but this value |
26 // is overrideen immediately when saving the entity in FakeServer. | 28 // is overrideen immediately when saving the entity in FakeServer. |
27 const int64 kUnusedVersion = 0L; | 29 const int64_t kUnusedVersion = 0L; |
28 | 30 |
29 // Default time (creation and last modified) used when creating entities. | 31 // Default time (creation and last modified) used when creating entities. |
30 const int64 kDefaultTime = 1234L; | 32 const int64_t kDefaultTime = 1234L; |
31 | 33 |
32 namespace fake_server { | 34 namespace fake_server { |
33 | 35 |
34 BookmarkEntityBuilder::BookmarkEntityBuilder( | 36 BookmarkEntityBuilder::BookmarkEntityBuilder( |
35 const string& title, | 37 const string& title, |
36 const string& originator_cache_guid, | 38 const string& originator_cache_guid, |
37 const string& originator_client_item_id) | 39 const string& originator_client_item_id) |
38 : title_(title), | 40 : title_(title), |
39 originator_cache_guid_(originator_cache_guid), | 41 originator_cache_guid_(originator_cache_guid), |
40 originator_client_item_id_(originator_client_item_id) { | 42 originator_client_item_id_(originator_client_item_id) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 originator_client_item_id_, | 101 originator_client_item_id_, |
100 unique_position, | 102 unique_position, |
101 entity_specifics, | 103 entity_specifics, |
102 is_folder, | 104 is_folder, |
103 parent_id_, | 105 parent_id_, |
104 kDefaultTime, | 106 kDefaultTime, |
105 kDefaultTime)); | 107 kDefaultTime)); |
106 } | 108 } |
107 | 109 |
108 } // namespace fake_server | 110 } // namespace fake_server |
OLD | NEW |