Lines Matching refs:unit_test
58 UnitTest& unit_test = *UnitTest::GetInstance(); in GetSortedTestCases() local
60 new const TestCase*[unit_test.total_test_case_count()]; in GetSortedTestCases()
62 for (int i = 0; i < unit_test.total_test_case_count(); ++i) in GetSortedTestCases()
63 test_cases[i] = unit_test.GetTestCase(i); in GetSortedTestCases()
66 test_cases + unit_test.total_test_case_count(), in GetSortedTestCases()
74 UnitTest& unit_test = *UnitTest::GetInstance(); in FindTestCase() local
75 for (int i = 0; i < unit_test.total_test_case_count(); ++i) { in FindTestCase()
76 const TestCase* test_case = unit_test.GetTestCase(i); in FindTestCase()
121 UnitTest* unit_test = UnitTest::GetInstance(); in TEST() local
123 ASSERT_EQ(2 + kTypedTestCases, unit_test->total_test_case_count()); in TEST()
124 EXPECT_EQ(1 + kTypedTestCases, unit_test->test_case_to_run_count()); in TEST()
125 EXPECT_EQ(2, unit_test->disabled_test_count()); in TEST()
126 EXPECT_EQ(5 + kTypedTests, unit_test->total_test_count()); in TEST()
127 EXPECT_EQ(3 + kTypedTests, unit_test->test_to_run_count()); in TEST()
237 UnitTest* unit_test = UnitTest::GetInstance(); in TearDown() local
239 EXPECT_EQ(1 + kTypedTestCases, unit_test->successful_test_case_count()); in TearDown()
240 EXPECT_EQ(3 + kTypedTests, unit_test->successful_test_count()); in TearDown()
241 EXPECT_EQ(0, unit_test->failed_test_case_count()); in TearDown()
242 EXPECT_EQ(0, unit_test->failed_test_count()); in TearDown()
243 EXPECT_TRUE(unit_test->Passed()); in TearDown()
244 EXPECT_FALSE(unit_test->Failed()); in TearDown()
245 ASSERT_EQ(2 + kTypedTestCases, unit_test->total_test_case_count()); in TearDown()