#include "components/value_store/test_value_store_factory.h"
#include "base/containers/contains.h"
#include "base/memory/ptr_util.h"
#include "base/not_fatal_until.h"
#include "components/value_store/leveldb_value_store.h"
#include "components/value_store/testing_value_store.h"
namespace {
const char kUMAClientName[] = …;
}
namespace value_store {
TestValueStoreFactory::TestValueStoreFactory() = default;
TestValueStoreFactory::TestValueStoreFactory(const base::FilePath& db_path)
: … { … }
TestValueStoreFactory::~TestValueStoreFactory() = default;
std::unique_ptr<ValueStore> TestValueStoreFactory::CreateValueStore(
const base::FilePath& directory,
const std::string& uma_client_name) { … }
ValueStore* TestValueStoreFactory::LastCreatedStore() const { … }
void TestValueStoreFactory::DeleteValueStore(const base::FilePath& directory) { … }
bool TestValueStoreFactory::HasValueStore(const base::FilePath& directory) { … }
ValueStore* TestValueStoreFactory::GetExisting(
const base::FilePath& directory) const { … }
void TestValueStoreFactory::Reset() { … }
std::unique_ptr<ValueStore> TestValueStoreFactory::CreateStore() { … }
}