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

Unified Diff: sync/internal_api/public/test/model_type_store_test_util.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
Index: sync/internal_api/public/test/model_type_store_test_util.h
diff --git a/sync/internal_api/public/test/model_type_store_test_util.h b/sync/internal_api/public/test/model_type_store_test_util.h
deleted file mode 100644
index a5b38181aabb2f3a66343bc4b96fd3f67c9444e5..0000000000000000000000000000000000000000
--- a/sync/internal_api/public/test/model_type_store_test_util.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2016 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_INTERNAL_API_PUBLIC_TEST_MODEL_TYPE_STORE_TEST_UTIL_H_
-#define SYNC_INTERNAL_API_PUBLIC_TEST_MODEL_TYPE_STORE_TEST_UTIL_H_
-
-#include <memory>
-
-#include "sync/api/model_type_store.h"
-
-namespace syncer_v2 {
-
-// Util class with several static methods to facilitate writing unit tests for
-// classes that use ModelTypeStore objects.
-class ModelTypeStoreTestUtil {
- public:
- // Creates an in memory store syncronously. Be aware that to do this all
- // outstanding tasks will be run as the current message loop is pumped.
- static std::unique_ptr<ModelTypeStore> CreateInMemoryStoreForTest();
-
- // Can be curried with an owned store object to allow passing an already
- // created store to a service constructor in a unit test.
- static void MoveStoreToCallback(std::unique_ptr<ModelTypeStore> store,
- const ModelTypeStore::InitCallback& callback);
-};
-
-} // namespace syncer_v2
-
-#endif // SYNC_INTERNAL_API_PUBLIC_TEST_MODEL_TYPE_STORE_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698