Lines Matching refs: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;
129 const TestCase** const test_cases = UnitTestHelper::GetSortedTestCases();
131 EXPECT_STREQ("ApiTest", test_cases[0]->name());
132 EXPECT_STREQ("DISABLED_Test", test_cases[1]->name());
134 EXPECT_STREQ("TestCaseWithCommentTest/0", test_cases[2]->name());
137 delete[] test_cases;
247 const TestCase** const test_cases = UnitTestHelper::GetSortedTestCases();
249 EXPECT_STREQ("ApiTest", test_cases[0]->name());
250 EXPECT_STREQ("", test_cases[0]->comment());
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_STREQ("", test_cases[1]->comment());
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());
270 test_cases[2]->comment());
271 EXPECT_TRUE(test_cases[2]->should_run());
272 EXPECT_EQ(0, test_cases[2]->disabled_test_count());
273 ASSERT_EQ(1, test_cases[2]->total_test_count());
274 EXPECT_EQ(1, test_cases[2]->successful_test_count());
275 EXPECT_EQ(0, test_cases[2]->failed_test_count());
276 EXPECT_TRUE(test_cases[2]->Passed());
277 EXPECT_FALSE(test_cases[2]->Failed());
330 delete[] test_cases;