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

Unified Diff: sync/test/fake_server/bookmark_entity_builder.h

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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/test/fake_server/bookmark_entity.cc ('k') | sync/test/fake_server/bookmark_entity_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/fake_server/bookmark_entity_builder.h
diff --git a/sync/test/fake_server/bookmark_entity_builder.h b/sync/test/fake_server/bookmark_entity_builder.h
deleted file mode 100644
index e5264f81903af334f7a23337b35d659e65f5242b..0000000000000000000000000000000000000000
--- a/sync/test/fake_server/bookmark_entity_builder.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_
-#define SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_
-
-#include <memory>
-#include <string>
-
-#include "sync/internal_api/public/base/model_type.h"
-#include "sync/test/fake_server/fake_server_entity.h"
-#include "url/gurl.h"
-
-namespace fake_server {
-
-// Builder for BookmarkEntity objects.
-class BookmarkEntityBuilder {
- public:
- BookmarkEntityBuilder(const std::string& title,
- const std::string& originator_cache_guid,
- const std::string& originator_client_item_id);
-
- BookmarkEntityBuilder(const BookmarkEntityBuilder& other);
-
- ~BookmarkEntityBuilder();
-
- // Sets the parent ID of the bookmark to be built. If this is not called,
- // the bookmark will be included in the bookmarks bar.
- void SetParentId(const std::string& parent_id);
-
- // Builds and returns a FakeServerEntity representing a bookmark. Returns null
- // if the entity could not be built.
- std::unique_ptr<FakeServerEntity> BuildBookmark(const GURL& url);
-
- // Builds and returns a FakeServerEntity representing a bookmark folder.
- // Returns null if the entity could not be built.
- std::unique_ptr<FakeServerEntity> BuildFolder();
-
- private:
- // Creates an EntitySpecifics and pre-populates its BookmarkSpecifics with
- // the entity's title.
- sync_pb::EntitySpecifics CreateBaseEntitySpecifics() const;
-
- // Builds the parts of a FakeServerEntity common to both normal bookmarks and
- // folders.
- std::unique_ptr<FakeServerEntity> Build(
- const sync_pb::EntitySpecifics& entity_specifics,
- bool is_folder);
-
- // The bookmark entity's title. This value is also used as the entity's name.
- const std::string title_;
-
- // Information that associates the bookmark with its original client.
- const std::string originator_cache_guid_;
- const std::string originator_client_item_id_;
-
- // The ID of the parent bookmark folder.
- std::string parent_id_;
-};
-
-} // namespace fake_server
-
-#endif // SYNC_TEST_FAKE_SERVER_BOOKMARK_ENTITY_BUILDER_H_
« no previous file with comments | « sync/test/fake_server/bookmark_entity.cc ('k') | sync/test/fake_server/bookmark_entity_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698