chromium/content/browser/attribution_reporting/attribution_storage_sql_migrations_unittest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// Normalize schema strings to compare them reliabily. Notably, applies the
// following transformations:
// - Remove quotes as sometimes migrations cause table names to be string
//   literals.
// - Replaces ", " with "," as CREATE TABLE in schema will be represented with
//   or without a space depending if it got there by calling CREATE TABLE
//   directly or with an ALTER TABLE.
std::string NormalizeSchema(std::string input) {}

}  // namespace

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) {}

}  // namespace content