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

Unified Diff: sync/test/fake_server/entity_builder_factory.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_builder.cc ('k') | sync/test/fake_server/entity_builder_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/fake_server/entity_builder_factory.h
diff --git a/sync/test/fake_server/entity_builder_factory.h b/sync/test/fake_server/entity_builder_factory.h
deleted file mode 100644
index ff86cda32cf0971d0f772fd64239be394f7c6820..0000000000000000000000000000000000000000
--- a/sync/test/fake_server/entity_builder_factory.h
+++ /dev/null
@@ -1,44 +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_ENTITY_BUILDER_FACTORY_H_
-#define SYNC_TEST_FAKE_SERVER_ENTITY_BUILDER_FACTORY_H_
-
-#include <stdint.h>
-
-#include <string>
-
-#include "sync/test/fake_server/bookmark_entity_builder.h"
-#include "url/gurl.h"
-
-namespace fake_server {
-
-// Creates various types of EntityBuilders.
-//
-// This class exists because we maintain state related to the fake client that
-// supposedly created these entities.
-//
-// TODO(pvalenzuela): Revisit the naming of this class once the FakeServer
-// injection API is widely used. If this class stays bookmark-specific, it
-// should be named appropriately.
-class EntityBuilderFactory {
- public:
- EntityBuilderFactory();
- explicit EntityBuilderFactory(const std::string& cache_guid);
- virtual ~EntityBuilderFactory();
-
- BookmarkEntityBuilder NewBookmarkEntityBuilder(const std::string& title);
-
- private:
- // An identifier used when creating entities. This value is used similarly to
- // the value in the Sync directory code.
- std::string cache_guid_;
-
- // The latest client item id assigned to an entity.
- int64_t latest_client_item_id_;
-};
-
-} // namespace fake_server
-
-#endif // SYNC_TEST_FAKE_SERVER_ENTITY_BUILDER_FACTORY_H_
« no previous file with comments | « sync/test/fake_server/bookmark_entity_builder.cc ('k') | sync/test/fake_server/entity_builder_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698