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

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

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable 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/entity_builder_factory.h" 5 #include "components/sync/test/fake_server/entity_builder_factory.h"
6 6
7 #include <string>
8
9 #include "base/guid.h" 7 #include "base/guid.h"
10 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
11 #include "components/sync/test/fake_server/bookmark_entity_builder.h"
12 #include "url/gurl.h"
13 9
14 using std::string; 10 using std::string;
15 11
16 namespace fake_server { 12 namespace fake_server {
17 13
18 EntityBuilderFactory::EntityBuilderFactory() 14 EntityBuilderFactory::EntityBuilderFactory()
19 : cache_guid_(base::GenerateGUID()), latest_client_item_id_(0L) {} 15 : cache_guid_(base::GenerateGUID()), latest_client_item_id_(0L) {}
20 16
21 EntityBuilderFactory::EntityBuilderFactory(const string& cache_guid) 17 EntityBuilderFactory::EntityBuilderFactory(const string& cache_guid)
22 : cache_guid_(cache_guid), latest_client_item_id_(0L) {} 18 : cache_guid_(cache_guid), latest_client_item_id_(0L) {}
23 19
24 EntityBuilderFactory::~EntityBuilderFactory() {} 20 EntityBuilderFactory::~EntityBuilderFactory() {}
25 21
26 BookmarkEntityBuilder EntityBuilderFactory::NewBookmarkEntityBuilder( 22 BookmarkEntityBuilder EntityBuilderFactory::NewBookmarkEntityBuilder(
27 const string& title) { 23 const string& title) {
28 --latest_client_item_id_; 24 --latest_client_item_id_;
29 BookmarkEntityBuilder builder(title, cache_guid_, 25 BookmarkEntityBuilder builder(title, cache_guid_,
30 base::Int64ToString(latest_client_item_id_)); 26 base::Int64ToString(latest_client_item_id_));
31 return builder; 27 return builder;
32 } 28 }
33 29
34 } // namespace fake_server 30 } // namespace fake_server
OLDNEW
« no previous file with comments | « components/sync/test/fake_server/bookmark_entity_builder.cc ('k') | components/sync/test/fake_server/fake_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698