#include "components/sync/model/data_type_store_backend.h"
#include <utility>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/scoped_refptr.h"
#include "base/test/task_environment.h"
#include "components/sync/protocol/data_type_store_schema_descriptor.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/leveldatabase/env_chromium.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
#include "third_party/leveldatabase/src/include/leveldb/env.h"
#include "third_party/leveldatabase/src/include/leveldb/options.h"
#include "third_party/leveldatabase/src/include/leveldb/status.h"
#include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
UnorderedElementsAre;
namespace syncer {
namespace {
class DataTypeStoreBackendTest : public testing::Test { … };
TEST_F(DataTypeStoreBackendTest, WriteThenRead) { … }
TEST_F(DataTypeStoreBackendTest, ReadAllRecordsWithPrefix) { … }
TEST_F(DataTypeStoreBackendTest, ReadDeletedRecord) { … }
TEST_F(DataTypeStoreBackendTest, DeleteDataAndMetadataForPrefix) { … }
TEST_F(DataTypeStoreBackendTest, MigrateNoSchemaVersionToLatestVersionTest) { … }
TEST_F(DataTypeStoreBackendTest, Migrate0To1Test) { … }
TEST_F(DataTypeStoreBackendTest, MigrateWithHigherExistingVersionFails) { … }
TEST_F(DataTypeStoreBackendTest, MigrateReadingListFromLocalToAccount) { … }
TEST_F(DataTypeStoreBackendTest,
MigrateReadingListFromLocalToAccount_Idempotent) { … }
TEST_F(DataTypeStoreBackendTest, RecoverAfterCorruption) { … }
}
}