37 using ::testing::EmptyTestEventListener;
39 using ::testing::Message;
40 using ::testing::Test;
41 using ::testing::TestEventListeners;
42 using ::testing::TestInfo;
43 using ::testing::UnitTest;
48 class A :
public Test {};
52 TEST(ADeathTest,
A) {}
53 TEST(ADeathTest,
B) {}
54 TEST(ADeathTest,
C) {}
59 TEST(
B, DISABLED_D) {}
60 TEST(
B, DISABLED_E) {}
62 TEST(BDeathTest,
A) {}
63 TEST(BDeathTest,
B) {}
68 TEST(
C, DISABLED_D) {}
70 TEST(CDeathTest,
A) {}
72 TEST(DISABLED_D,
A) {}
73 TEST(DISABLED_D, DISABLED_B) {}
77 class TestNamePrinter :
public EmptyTestEventListener {
79 void OnTestIterationStart(
const UnitTest& ,
84 void OnTestStart(
const TestInfo& test_info)
override {
85 printf(
"%s.%s\n", test_info.test_case_name(), test_info.name());
91 int main(
int argc,
char **argv) {
96 TestEventListeners& listeners = UnitTest::GetInstance()->listeners();
97 delete listeners.Release(listeners.default_result_printer());
98 listeners.Append(
new TestNamePrinter);
#define TEST_F(test_fixture, test_name)
#define TEST(test_suite_name, test_name)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
GTEST_API_ void InitGoogleTest(int *argc, char **argv)