Lines Matching defs:test_cases
59 TestCase const** const test_cases =
63 test_cases[i] = unit_test.GetTestCase(i);
65 std::sort(test_cases,
66 test_cases + unit_test.total_test_case_count(),
68 return test_cases;
123 const TestCase** const test_cases = UnitTestHelper::GetSortedTestCases();
125 EXPECT_STREQ("ApiTest", test_cases[0]->name());
126 EXPECT_STREQ("DISABLED_Test", test_cases[1]->name());
128 EXPECT_STREQ("TestCaseWithCommentTest/0", test_cases[2]->name());
131 delete[] test_cases;
247 const TestCase** const test_cases = UnitTestHelper::GetSortedTestCases();
249 EXPECT_STREQ("ApiTest", test_cases[0]->name());
250 EXPECT_TRUE(IsNull(test_cases[0]->type_param()));
251 EXPECT_TRUE(test_cases[0]->should_run());
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());
256 EXPECT_TRUE(test_cases[0]->Passed());
257 EXPECT_FALSE(test_cases[0]->Failed());
259 EXPECT_STREQ("DISABLED_Test", test_cases[1]->name());
260 EXPECT_TRUE(IsNull(test_cases[1]->type_param()));
261 EXPECT_FALSE(test_cases[1]->should_run());
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());
268 EXPECT_STREQ("TestCaseWithCommentTest/0", test_cases[2]->name());
269 EXPECT_STREQ(GetTypeName<int>().c_str(), test_cases[2]->type_param());
270 EXPECT_TRUE(test_cases[2]->should_run());
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());
275 EXPECT_TRUE(test_cases[2]->Passed());
276 EXPECT_FALSE(test_cases[2]->Failed());
328 delete[] test_cases;