#include "gtest/gtest-spi.h"
#include "gtest/gtest.h"
#include "TestingSupport/SubsystemRAII.h"
usingnamespacelldb_private;
namespace {
enum class SystemState { … };
struct TestSubsystem { … };
}
SystemState TestSubsystem::state = …;
TEST(SubsystemRAIITest, NormalSubsystem) { … }
static const char *SubsystemErrorString = …;
namespace {
struct TestSubsystemWithError { … };
}
SystemState TestSubsystemWithError::state = …;
bool TestSubsystemWithError::will_fail = …;
TEST(SubsystemRAIITest, SubsystemWithErrorSuccess) { … }
TEST(SubsystemRAIITest, SubsystemWithErrorFailure) { … }