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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « sync/test/fake_server/entity_builder_factory.h ('k') | sync/test/fake_server/fake_server.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "sync/test/fake_server/entity_builder_factory.h"
6
7 #include <string>
8
9 #include "base/guid.h"
10 #include "base/strings/string_number_conversions.h"
11 #include "sync/test/fake_server/bookmark_entity_builder.h"
12 #include "url/gurl.h"
13
14 using std::string;
15
16 namespace fake_server {
17
18 EntityBuilderFactory::EntityBuilderFactory()
19 : cache_guid_(base::GenerateGUID()), latest_client_item_id_(0L) {
20 }
21
22 EntityBuilderFactory::EntityBuilderFactory(const string& cache_guid)
23 : cache_guid_(cache_guid), latest_client_item_id_(0L) {
24 }
25
26 EntityBuilderFactory::~EntityBuilderFactory() {
27 }
28
29 BookmarkEntityBuilder EntityBuilderFactory::NewBookmarkEntityBuilder(
30 const string& title) {
31 --latest_client_item_id_;
32 BookmarkEntityBuilder builder(title,
33 cache_guid_,
34 base::Int64ToString(latest_client_item_id_));
35 return builder;
36 }
37
38 } // namespace fake_server
OLDNEW
« no previous file with comments | « sync/test/fake_server/entity_builder_factory.h ('k') | sync/test/fake_server/fake_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698