38 using ::testing::EmptyTestEventListener;
40 using ::testing::Message;
41 using ::testing::Test;
42 using ::testing::TestEventListeners;
43 using ::testing::TestInfo;
44 using ::testing::UnitTest;
45 using ::testing::internal::scoped_ptr;
50 class A :
public Test {};
54 TEST(ADeathTest,
A) {}
55 TEST(ADeathTest, B) {}
56 TEST(ADeathTest,
C) {}
61 TEST(B, DISABLED_D) {}
62 TEST(B, DISABLED_E) {}
64 TEST(BDeathTest,
A) {}
65 TEST(BDeathTest, B) {}
70 TEST(
C, DISABLED_D) {}
72 TEST(CDeathTest,
A) {}
74 TEST(DISABLED_D,
A) {}
75 TEST(DISABLED_D, DISABLED_B) {}
79 class TestNamePrinter :
public EmptyTestEventListener {
81 virtual void OnTestIterationStart(
const UnitTest& ,
86 virtual void OnTestStart(
const TestInfo& test_info) {
87 printf(
"%s.%s\n", test_info.test_case_name(), test_info.name());
93 int main(
int argc,
char **argv) {
98 TestEventListeners& listeners = UnitTest::GetInstance()->listeners();
99 delete listeners.Release(listeners.default_result_printer());
100 listeners.Append(
new TestNamePrinter);