chromium/components/affiliations/core/browser/sql_table_builder_unittest.cc

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

#include "components/affiliations/core/browser/sql_table_builder.h"

#include <vector>

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/strings/strcat.h"
#include "base/strings/stringprintf.h"
#include "base/test/mock_callback.h"
#include "sql/database.h"
#include "sql/statement.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/types/variant.h"

namespace affiliations {
namespace {

Return;
UnorderedElementsAre;

constexpr char kChildTable[] =;
constexpr char kMyLoginTable[] =;

ColumnValue;
TableRow;

void CheckTableContent(sql::Database& db,
                       const char table_name[],
                       const std::vector<TableRow>& expected_rows) {}

class SQLTableBuilderTest : public testing::Test {};

bool SQLTableBuilderTest::IsColumnOfType(const std::string& name,
                                         const std::string& type) {}

void SQLTableBuilderTest::SetupChildTable() {}

void SQLTableBuilderTest::Init() {}

void SQLTableBuilderTest::PrintDBError(int code, sql::Statement* statement) {}

TEST_F(SQLTableBuilderTest, SealVersion_0) {}

TEST_F(SQLTableBuilderTest, AddColumn) {}

TEST_F(SQLTableBuilderTest, AddIndex) {}

TEST_F(SQLTableBuilderTest, AddIndexOnMultipleColumns) {}

TEST_F(SQLTableBuilderTest, RenameColumn_InSameVersion) {}

TEST_F(SQLTableBuilderTest, RenameColumn_InNextVersion) {}

TEST_F(SQLTableBuilderTest, RenameColumn_SameNameInSameVersion) {}

TEST_F(SQLTableBuilderTest, RenameColumn_SameNameInNextVersion) {}

TEST_F(SQLTableBuilderTest, DropColumn_InSameVersion) {}

TEST_F(SQLTableBuilderTest, DropColumn_InNextVersion) {}

TEST_F(SQLTableBuilderTest, MigrateFrom) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_RenameAndAddColumns) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_RenameAndAddAndDropColumns) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_AddPrimaryKey) {}

TEST_F(SQLTableBuilderTest, MigrateFromWithSuccessfulCallback) {}

TEST_F(SQLTableBuilderTest, MigrateFromWithUnsuccessfulCallback) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_WithForeignKey_AddColumn) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_WithForeignKey_RenameColumn) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_WithForeignKey_DropColumn) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_WithForeignKey_PreventMigration) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_WithForeignKey_ChildTable_AddColumn) {}

TEST_F(SQLTableBuilderTest,
       MigrateFrom_WithForeignKey_ChildTable_RenameColumn) {}

TEST_F(SQLTableBuilderTest, MigrateFrom_WithForeignKey_ChildTable_DropColumn) {}

}  // namespace
}  // namespace affiliations