#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 { … };
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(…);
}
}