// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_VALUE_STORE_TEST_VALUE_STORE_FACTORY_H_ #define COMPONENTS_VALUE_STORE_TEST_VALUE_STORE_FACTORY_H_ #include <map> #include <memory> #include "base/files/file_path.h" #include "base/memory/raw_ptr.h" #include "components/value_store/value_store_factory.h" namespace value_store { class ValueStore; // Used for tests when a new test ValueStore is required. Will either open a // database on disk (if path provided) returning a |LeveldbValueStore|. // Otherwise a new |TestingValueStore| instance will be returned. class TestValueStoreFactory : public ValueStoreFactory { … }; } // namespace value_store #endif // COMPONENTS_VALUE_STORE_TEST_VALUE_STORE_FACTORY_H_