• 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()
148 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); in TEST() local
149 ASSERT_TRUE(test_case != NULL); in TEST()
151 EXPECT_STREQ("ApiTest", test_case->name()); in TEST()
152 EXPECT_TRUE(IsNull(test_case->type_param())); in TEST()
153 EXPECT_TRUE(test_case->should_run()); in TEST()
154 EXPECT_EQ(1, test_case->disabled_test_count()); in TEST()
155 EXPECT_EQ(3, test_case->test_to_run_count()); in TEST()
156 ASSERT_EQ(4, test_case->total_test_count()); in TEST()
158 const TestInfo** tests = UnitTestHelper::GetSortedTests(test_case); in TEST()
188 test_case = UnitTestHelper::FindTestCase("TestCaseWithCommentTest/0"); in TEST()
189 ASSERT_TRUE(test_case != NULL); in TEST()
191 EXPECT_STREQ("TestCaseWithCommentTest/0", test_case->name()); in TEST()
192 EXPECT_STREQ(GetTypeName<int>().c_str(), test_case->type_param()); in TEST()
193 EXPECT_TRUE(test_case->should_run()); in TEST()
194 EXPECT_EQ(0, test_case->disabled_test_count()); in TEST()
195 EXPECT_EQ(1, test_case->test_to_run_count()); in TEST()
196 ASSERT_EQ(1, test_case->total_test_count()); in TEST()
198 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_TRUE(IsNull(test_case->type_param())); 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()
279 const TestCase* test_case = UnitTestHelper::FindTestCase("ApiTest"); in TearDown() local
280 const TestInfo** tests = UnitTestHelper::GetSortedTests(test_case); in TearDown()
315 test_case = UnitTestHelper::FindTestCase("TestCaseWithCommentTest/0"); in TearDown()
316 tests = UnitTestHelper::GetSortedTests(test_case); in TearDown()