chromium/sql/database_options_unittest.cc

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

#include <optional>

#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "sql/database.h"
#include "sql/statement.h"
#include "sql/test/scoped_error_expecter.h"
#include "sql/test/test_helpers.h"
#include "sql/transaction.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/sqlite/sqlite3.h"

namespace sql {

namespace {

enum class OpenVariant {};

// We use the parameter to run all tests with WAL mode on and off.
class DatabaseOptionsTest : public testing::TestWithParam<OpenVariant> {};

TEST_P(DatabaseOptionsTest, FlushToDisk_FalseByDefault) {}

TEST_P(DatabaseOptionsTest, FlushToDisk_True) {}

TEST_P(DatabaseOptionsTest, FlushToDisk_False_DoesNotCrash) {}

TEST_P(DatabaseOptionsTest, FlushToDisk_True_DoesNotCrash) {}

TEST_P(DatabaseOptionsTest, PageSize_Default) {}

TEST_P(DatabaseOptionsTest, PageSize_Large) {}

TEST_P(DatabaseOptionsTest, PageSize_Small) {}

TEST_P(DatabaseOptionsTest, CacheSize_Legacy) {}

TEST_P(DatabaseOptionsTest, CacheSize_Small) {}

TEST_P(DatabaseOptionsTest, CacheSize_Large) {}

TEST_P(DatabaseOptionsTest, EnableViewsDiscouraged_FalseByDefault) {}

TEST_P(DatabaseOptionsTest, EnableViewsDiscouraged_True) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace

}  // namespace sql