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

Side by Side Diff: components/sync/test/fake_server/fake_server_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/fake_server_entity.h" 5 #include "components/sync/test/fake_server/fake_server_entity.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/guid.h" 11 #include "base/guid.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_split.h" 15 #include "base/strings/string_split.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "net/http/http_status_code.h" 19 #include "net/http/http_status_code.h"
20 20
21 using std::string; 21 using std::string;
22 using std::vector; 22 using std::vector;
23
24 using syncer::ModelType; 23 using syncer::ModelType;
25 24
26 // The separator used when formatting IDs. 25 // The separator used when formatting IDs.
27 // 26 //
28 // We chose the underscore character because it doesn't conflict with the 27 // We chose the underscore character because it doesn't conflict with the
29 // special characters used by base/base64.h's encoding, which is also used in 28 // special characters used by base/base64.h's encoding, which is also used in
30 // the construction of some IDs. 29 // the construction of some IDs.
31 const char kIdSeparator[] = "_"; 30 const char kIdSeparator[] = "_";
32 31
33 namespace fake_server { 32 namespace fake_server {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 121
123 // Data via accessors 122 // Data via accessors
124 sync_entity->set_deleted(IsDeleted()); 123 sync_entity->set_deleted(IsDeleted());
125 sync_entity->set_folder(IsFolder()); 124 sync_entity->set_folder(IsFolder());
126 125
127 if (RequiresParentId()) 126 if (RequiresParentId())
128 sync_entity->set_parent_id_string(GetParentId()); 127 sync_entity->set_parent_id_string(GetParentId());
129 } 128 }
130 129
131 } // namespace fake_server 130 } // namespace fake_server
OLDNEW
« no previous file with comments | « components/sync/test/fake_server/fake_server.cc ('k') | components/sync/test/fake_server/fake_server_http_post_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698