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

Side by Side Diff: sync/test/fake_server/fake_server_entity.cc

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "sync/test/fake_server/fake_server_entity.h" 5 #include "sync/test/fake_server/fake_server_entity.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <memory>
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/guid.h" 14 #include "base/guid.h"
14 #include "base/logging.h" 15 #include "base/logging.h"
15 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/string_split.h" 18 #include "base/strings/string_split.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
21 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
22 #include "net/http/http_status_code.h" 22 #include "net/http/http_status_code.h"
23 #include "sync/internal_api/public/base/model_type.h" 23 #include "sync/internal_api/public/base/model_type.h"
24 #include "sync/protocol/sync.pb.h" 24 #include "sync/protocol/sync.pb.h"
25 25
26 using std::string; 26 using std::string;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Data via accessors 129 // Data via accessors
130 sync_entity->set_deleted(IsDeleted()); 130 sync_entity->set_deleted(IsDeleted());
131 sync_entity->set_folder(IsFolder()); 131 sync_entity->set_folder(IsFolder());
132 132
133 if (RequiresParentId()) 133 if (RequiresParentId())
134 sync_entity->set_parent_id_string(GetParentId()); 134 sync_entity->set_parent_id_string(GetParentId());
135 } 135 }
136 136
137 } // namespace fake_server 137 } // namespace fake_server
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698