48 TEST_F(HasFixtureTest, Test0) {}
50 TEST_F(HasFixtureTest, Test1) {
FAIL() <<
"Expected failure."; }
52 TEST_F(HasFixtureTest, Test2) {
FAIL() <<
"Expected failure."; }
54 TEST_F(HasFixtureTest, Test3) {
FAIL() <<
"Expected failure."; }
56 TEST_F(HasFixtureTest, Test4) {
FAIL() <<
"Expected failure."; }
60 TEST(HasSimpleTest, Test0) {}
62 TEST(HasSimpleTest, Test1) {
FAIL() <<
"Expected failure."; }
64 TEST(HasSimpleTest, Test2) {
FAIL() <<
"Expected failure."; }
66 TEST(HasSimpleTest, Test3) {
FAIL() <<
"Expected failure."; }
68 TEST(HasSimpleTest, Test4) {
FAIL() <<
"Expected failure."; }
72 TEST(HasDisabledTest, Test0) {}
74 TEST(HasDisabledTest, DISABLED_Test1) {
FAIL() <<
"Expected failure."; }
76 TEST(HasDisabledTest, Test2) {
FAIL() <<
"Expected failure."; }
78 TEST(HasDisabledTest, Test3) {
FAIL() <<
"Expected failure."; }
80 TEST(HasDisabledTest, Test4) {
FAIL() <<
"Expected failure."; }
86 TEST(HasDeathTest, Test1) {
90 TEST(HasDeathTest, Test2) {
94 TEST(HasDeathTest, Test3) {
98 TEST(HasDeathTest, Test4) {
104 TEST(DISABLED_HasDisabledSuite, Test0) {}
106 TEST(DISABLED_HasDisabledSuite, Test1) {
FAIL() <<
"Expected failure."; }
108 TEST(DISABLED_HasDisabledSuite, Test2) {
FAIL() <<
"Expected failure."; }
110 TEST(DISABLED_HasDisabledSuite, Test3) {
FAIL() <<
"Expected failure."; }
112 TEST(DISABLED_HasDisabledSuite, Test4) {
FAIL() <<
"Expected failure."; }
118 TEST_P(HasParametersTest, Test1) {
FAIL() <<
"Expected failure."; }
120 TEST_P(HasParametersTest, Test2) {
FAIL() <<
"Expected failure."; }
127 printf(
"We are in OnTestSuiteStart of %s.\n", test_suite.name());
130 void OnTestStart(const ::testing::TestInfo& test_info)
override {
131 printf(
"We are in OnTestStart of %s.%s.\n", test_info.test_suite_name(),
136 const ::testing::TestPartResult& test_part_result)
override {
137 printf(
"We are in OnTestPartResult %s:%d.\n", test_part_result.file_name(),
138 test_part_result.line_number());
141 void OnTestEnd(const ::testing::TestInfo& test_info)
override {
142 printf(
"We are in OnTestEnd of %s.%s.\n", test_info.test_suite_name(),
146 void OnTestSuiteEnd(const ::testing::TestSuite& test_suite)
override {
147 printf(
"We are in OnTestSuiteEnd of %s.\n", test_suite.name());
151 TEST(HasSkipTest, Test0) {
SUCCEED() <<
"Expected success."; }
155 TEST(HasSkipTest, Test2) {
FAIL() <<
"Expected failure."; }
157 TEST(HasSkipTest, Test3) {
FAIL() <<
"Expected failure."; }
159 TEST(HasSkipTest, Test4) {
FAIL() <<
"Expected failure."; }
163 int main(
int argc,
char **argv) {
internal::ValueArray< T...> Values(T...v)
#define EXPECT_DEATH_IF_SUPPORTED(statement, regex)
#define TEST_F(test_fixture, test_name)
#define TEST(test_suite_name, test_name)
void OnTestEnd(const TestInfo &) override
void Append(TestEventListener *listener)
void OnTestStart(const TestInfo &) override
void OnTestSuiteStart(const TestSuite &) override
TestEventListeners & listeners()
void OnTestPartResult(const TestPartResult &) override
#define TEST_P(test_suite_name, test_name)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
static UnitTest * GetInstance()
void OnTestSuiteEnd(const TestSuite &) override
#define INSTANTIATE_TEST_SUITE_P(prefix, test_suite_name,...)