chromium/sql/statement_unittest.cc

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

#include "sql/statement.h"

#include <cstdint>
#include <limits>
#include <string>
#include <string_view>
#include <vector>

#include "base/containers/contains.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "sql/database.h"
#include "sql/test/scoped_error_expecter.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/sqlite/sqlite3.h"

namespace sql {
namespace {

class StatementTest : public testing::Test {};

TEST_F(StatementTest, Assign) {}

TEST_F(StatementTest, Run) {}

// Error callback called for error running a statement.
TEST_F(StatementTest, DatabaseErrorCallbackCalledOnError) {}

// Error expecter works for error running a statement.
TEST_F(StatementTest, ScopedIgnoreError) {}

TEST_F(StatementTest, Reset) {}

TEST_F(StatementTest, BindInt64) {}

// Chrome features rely on being able to use uint64_t with ColumnInt64().
// This is supported, because (starting in C++20) casting between signed and
// unsigned integers is well-defined in both directions. This test ensures that
// the casting works as expected.
TEST_F(StatementTest, BindInt64_FromUint64t) {}

TEST_F(StatementTest, BindBlob) {}

TEST_F(StatementTest, BindBlob_String16Overload) {}

TEST_F(StatementTest, BindString) {}

TEST_F(StatementTest, BindString_NullData) {}

TEST_F(StatementTest, GetSQLStatementExcludesBoundValues) {}

TEST_F(StatementTest, RunReportsPerformanceMetrics) {}

}  // namespace
}  // namespace sql