236 {
238
241 EXPECT_EQ(0, unit_test->failed_test_case_count());
242 EXPECT_EQ(0, unit_test->failed_test_count());
246
248
252 EXPECT_EQ(1, test_cases[0]->disabled_test_count());
253 ASSERT_EQ(4, test_cases[0]->total_test_count());
254 EXPECT_EQ(3, test_cases[0]->successful_test_count());
255 EXPECT_EQ(0, test_cases[0]->failed_test_count());
258
262 EXPECT_EQ(1, test_cases[1]->disabled_test_count());
263 ASSERT_EQ(1, test_cases[1]->total_test_count());
264 EXPECT_EQ(0, test_cases[1]->successful_test_count());
265 EXPECT_EQ(0, test_cases[1]->failed_test_count());
266
267#if GTEST_HAS_TYPED_TEST
271 EXPECT_EQ(0, test_cases[2]->disabled_test_count());
272 ASSERT_EQ(1, test_cases[2]->total_test_count());
273 EXPECT_EQ(1, test_cases[2]->successful_test_count());
274 EXPECT_EQ(0, test_cases[2]->failed_test_count());
277#endif
278
284
291 EXPECT_EQ(0, tests[1]->result()->test_property_count());
292
299 EXPECT_EQ(0, tests[2]->result()->test_property_count());
300
307 EXPECT_EQ(1, tests[3]->result()->test_property_count());
308 const TestProperty& property = tests[3]->result()->GetTestProperty(0);
311
312 delete[] tests;
313
314#if GTEST_HAS_TYPED_TEST
317
319 EXPECT_STREQ(
"TestCaseWithCommentTest/0", tests[0]->test_case_name());
324 EXPECT_EQ(0, tests[0]->result()->test_property_count());
325
326 delete[] tests;
327#endif
328 delete[] test_cases;
329 }
static UnitTest * GetInstance()
static TestInfo const ** GetSortedTests(const TestCase *test_case)
static const TestCase * FindTestCase(const char *name)
static TestCase const ** GetSortedTestCases()
#define ASSERT_EQ(val1, val2)
#define EXPECT_EQ(val1, val2)
#define EXPECT_TRUE(condition)
#define EXPECT_STREQ(s1, s2)
#define EXPECT_FALSE(condition)
std::string GetTypeName()
const int kTypedTestCases
PolymorphicMatcher< internal::IsNullMatcher > IsNull()