#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) { … }
TEST_F(SQLTransactionTest, CloseDatabase) { … }
TEST_F(SQLTransactionTest, RollbackOnDestruction) { … }
TEST_F(SQLTransactionTest, ExplicitRollback) { … }
TEST_F(SQLTransactionTest, NestedRollback) { … }
TEST(SQLTransactionDatabaseDestroyedTest, BeginIsNoOp) { … }
TEST(SQLTransactionDatabaseDestroyedTest, RollbackIsNoOp) { … }
TEST(SQLTransactionDatabaseDestroyedTest, CommitIsNoOp) { … }
}
}