Home | History | Annotate | Download | only in test

Lines Matching refs:test_case

76       const TestCase* test_case = unit_test.GetTestCase(i);
77 if (0 == strcmp(test_case->name(), name))
78 return test_case;
86 static TestInfo const** const GetSortedTests(const TestCase* test_case) {
88 new const TestInfo*[test_case->total_test_count()];
90 for (int i = 0; i < test_case->total_test_count(); ++i)
91 tests[i] = test_case->GetTestInfo(i);
93 std::sort(tests, tests + test_case->total_test_count(),
147 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest");
148 ASSERT_TRUE(test_case != NULL);
150 EXPECT_STREQ("ApiTest", test_case->name());
151 EXPECT_STREQ("", test_case->comment());
152 EXPECT_TRUE(test_case->should_run());
153 EXPECT_EQ(1, test_case->disabled_test_count());
154 EXPECT_EQ(3, test_case->test_to_run_count());
155 ASSERT_EQ(4, test_case->total_test_count());
157 const TestInfo** tests = UnitTestHelper::GetSortedTests(test_case);
187 test_case = UnitTestHelper::FindTestCase("TestCaseWithCommentTest/0");
188 ASSERT_TRUE(test_case != NULL);
190 EXPECT_STREQ("TestCaseWithCommentTest/0", test_case->name());
191 EXPECT_STREQ(GetExpectedTestCaseComment().c_str(), test_case->comment());
192 EXPECT_TRUE(test_case->should_run());
193 EXPECT_EQ(0, test_case->disabled_test_count());
194 EXPECT_EQ(1, test_case->test_to_run_count());
195 ASSERT_EQ(1, test_case->total_test_count());
197 tests = UnitTestHelper::GetSortedTests(test_case);
211 const TestCase* test_case = UnitTestHelper::FindTestCase("DISABLED_Test");
212 ASSERT_TRUE(test_case != NULL);
214 EXPECT_STREQ("DISABLED_Test", test_case->name());
215 EXPECT_STREQ("", test_case->comment());
216 EXPECT_FALSE(test_case->should_run());
217 EXPECT_EQ(1, test_case->disabled_test_count());
218 EXPECT_EQ(0, test_case->test_to_run_count());
219 ASSERT_EQ(1, test_case->total_test_count());
221 const TestInfo* const test_info = test_case->GetTestInfo(0);
280 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest");
281 const TestInfo** tests = UnitTestHelper::GetSortedTests(test_case);
316 test_case = UnitTestHelper::FindTestCase("TestCaseWithCommentTest/0");
317 tests = UnitTestHelper::GetSortedTests(test_case);