Home
last modified time | relevance | path

Searched refs:CountIf (Results 1 – 3 of 3) sorted by relevance

/ndk/sources/third_party/googletest/googletest/src/
Dgtest.cc144 using internal::CountIf;
705 return CountIf(test_cases_, TestCasePassed); in successful_test_case_count()
710 return CountIf(test_cases_, TestCaseFailed); in failed_test_case_count()
721 return CountIf(test_cases_, ShouldRunTestCase); in test_case_to_run_count()
1847 return CountIf(test_part_results_, TestPartFatallyFailed) > 0; in HasFatalFailure()
1857 return CountIf(test_part_results_, TestPartNonfatallyFailed) > 0; in HasNonfatalFailure()
2333 return CountIf(test_info_list_, TestPassed); in successful_test_count()
2338 return CountIf(test_info_list_, TestFailed); in failed_test_count()
2342 return CountIf(test_info_list_, TestDisabled); in disabled_test_count()
2347 return CountIf(test_info_list_, ShouldRunTest); in test_to_run_count()
Dgtest-internal-inl.h282 inline int CountIf(const Container& c, Predicate predicate) { in CountIf() function
/ndk/sources/third_party/googletest/googletest/test/
Dgtest_unittest.cc246 using testing::internal::CountIf;
775 TEST(ContainerUtilityTest, CountIf) { in TEST() argument
777 EXPECT_EQ(0, CountIf(v, IsPositive)); // Works for an empty container. in TEST()
781 EXPECT_EQ(0, CountIf(v, IsPositive)); // Works when no value satisfies. in TEST()
786 EXPECT_EQ(2, CountIf(v, IsPositive)); in TEST()