#include <memory>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "base/test/metrics/histogram_tester.h"
#include "components/services/storage/public/cpp/constants.h"
#include "sql/database.h"
#include "sql/meta_table.h"
#include "sql/statement.h"
#include "sql/test/test_helpers.h"
#include "storage/browser/quota/quota_database.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace storage {
namespace {
const int kCurrentSchemaVersion = …;
const int kCurrentCompatibleVersion = …;
std::string RemoveQuotes(std::string input) { … }
}
class QuotaDatabaseMigrationsTest : public testing::Test { … };
TEST_F(QuotaDatabaseMigrationsTest, QuotaDatabaseSchemaMatchesTestSchema) { … }
TEST_F(QuotaDatabaseMigrationsTest, UpgradeSchemaFromV7) { … }
TEST_F(QuotaDatabaseMigrationsTest, UpgradeSchemaFromV8) { … }
TEST_F(QuotaDatabaseMigrationsTest, UpgradeSchemaFromV9) { … }
}