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 "components/sync/test/fake_server/fake_server_entity.h" | 5 #include "components/sync/test/fake_server/fake_server_entity.h" |
6 | 6 |
7 #include <stdint.h> | |
8 | |
9 #include <limits> | 7 #include <limits> |
10 #include <memory> | 8 #include <memory> |
11 #include <string> | |
12 #include <vector> | 9 #include <vector> |
13 | 10 |
14 #include "base/guid.h" | 11 #include "base/guid.h" |
15 #include "base/logging.h" | 12 #include "base/logging.h" |
16 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
17 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
19 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
20 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
21 #include "components/sync/base/model_type.h" | |
22 #include "components/sync/protocol/sync.pb.h" | |
23 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
24 #include "net/http/http_status_code.h" | 19 #include "net/http/http_status_code.h" |
25 | 20 |
26 using std::string; | 21 using std::string; |
27 using std::vector; | 22 using std::vector; |
28 | 23 |
29 using syncer::ModelType; | 24 using syncer::ModelType; |
30 | 25 |
31 // The separator used when formatting IDs. | 26 // The separator used when formatting IDs. |
32 // | 27 // |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 122 |
128 // Data via accessors | 123 // Data via accessors |
129 sync_entity->set_deleted(IsDeleted()); | 124 sync_entity->set_deleted(IsDeleted()); |
130 sync_entity->set_folder(IsFolder()); | 125 sync_entity->set_folder(IsFolder()); |
131 | 126 |
132 if (RequiresParentId()) | 127 if (RequiresParentId()) |
133 sync_entity->set_parent_id_string(GetParentId()); | 128 sync_entity->set_parent_id_string(GetParentId()); |
134 } | 129 } |
135 | 130 |
136 } // namespace fake_server | 131 } // namespace fake_server |
OLD | NEW |