ServiceWorker: Consolidate version manipulation functions in SWProviderContext
[chromium-blink-merge.git] / sync / test / fake_server / bookmark_entity_builder.h
blob62c7169e6c59c78c507455def6615606aac8f8f8
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 #ifndef SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_
6 #define SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_
8 #include <string>
10 #include "base/memory/scoped_ptr.h"
11 #include "sync/internal_api/public/base/model_type.h"
12 #include "sync/test/fake_server/entity_builder.h"
13 #include "sync/test/fake_server/fake_server_entity.h"
14 #include "url/gurl.h"
16 namespace fake_server {
18 // Builder for BookmarkEntity objects.
19 class BookmarkEntityBuilder : public EntityBuilder {
20 public:
21 BookmarkEntityBuilder(const std::string& title,
22 const GURL& url,
23 const std::string& originator_cache_guid,
24 const std::string& originator_client_item_id);
26 ~BookmarkEntityBuilder() override;
28 // EntityBuilder
29 scoped_ptr<FakeServerEntity> Build() override;
31 private:
32 // The bookmark's URL.
33 GURL url_;
34 std::string originator_cache_guid_;
35 std::string originator_client_item_id_;
38 } // namespace fake_server
40 #endif // SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_