ServiceWorker: Consolidate version manipulation functions in SWProviderContext
[chromium-blink-merge.git] / sync / test / fake_server / entity_builder.cc
blobc5e2acfb31ba3e4fccce780e065a8e010755c2a3
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.
5 #include "sync/test/fake_server/entity_builder.h"
7 #include <string>
9 #include "base/guid.h"
10 #include "sync/internal_api/public/base/model_type.h"
12 using std::string;
14 using syncer::ModelType;
16 namespace fake_server {
18 EntityBuilder::EntityBuilder(ModelType model_type, const string& name)
19 : id_(FakeServerEntity::CreateId(model_type, base::GenerateGUID())),
20 model_type_(model_type),
21 name_(name) {
24 EntityBuilder::~EntityBuilder() {
27 } // namespace fake_server