#include "content/browser/attribution_reporting/attribution_storage_sql_migrations.h"
#include "base/containers/span.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/time/time.h"
#include "content/browser/attribution_reporting/attribution_reporting.pb.h"
#include "content/browser/attribution_reporting/attribution_resolver.h"
#include "content/browser/attribution_reporting/attribution_resolver_impl.h"
#include "content/browser/attribution_reporting/attribution_storage_sql.h"
#include "content/browser/attribution_reporting/attribution_test_utils.h"
#include "content/browser/attribution_reporting/store_source_result.h"
#include "content/browser/attribution_reporting/test/configurable_storage_delegate.h"
#include "sql/database.h"
#include "sql/statement.h"
#include "sql/test/test_helpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
ElementsAre;
std::string NormalizeSchema(std::string input) { … }
}
class AttributionStorageSqlMigrationsTest : public testing::Test { … };
TEST_F(AttributionStorageSqlMigrationsTest, MigrateEmptyToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateLatestDeprecatedToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion52ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion53ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion54ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion55ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion56ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion58ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion59ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion60ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion61ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion62ToCurrent) { … }
TEST_F(AttributionStorageSqlMigrationsTest, MigrateVersion63ToCurrent) { … }
}