chromium/sql/transaction_unittest.cc

// Copyright 2011 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/transaction.h"

#include <memory>

#include "base/files/scoped_temp_dir.h"
#include "sql/database.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace sql {

namespace {

class SQLTransactionTest : public testing::Test {};

TEST_F(SQLTransactionTest, Commit) {}

// Regression test for <https://crbug.com/326498384>.
TEST_F(SQLTransactionTest, CloseDatabase) {}

TEST_F(SQLTransactionTest, RollbackOnDestruction) {}

TEST_F(SQLTransactionTest, ExplicitRollback) {}

// Rolling back any part of a transaction should roll back all of them.
TEST_F(SQLTransactionTest, NestedRollback) {}

TEST(SQLTransactionDatabaseDestroyedTest, BeginIsNoOp) {}

TEST(SQLTransactionDatabaseDestroyedTest, RollbackIsNoOp) {}

TEST(SQLTransactionDatabaseDestroyedTest, CommitIsNoOp) {}

}  // namespace

}  // namespace sql