• Home
  • Raw
  • Download

Lines Matching refs:test_case

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