Lines Matching refs:unit_test
661 UnitTestImpl* unit_test) : unit_test_(unit_test) {} in DefaultGlobalTestPartResultReporter() argument
670 UnitTestImpl* unit_test) : unit_test_(unit_test) {} in DefaultPerThreadTestPartResultReporter() argument
2667 void OnTestIterationStart(const UnitTest &unit_test, int iteration) override;
2668 void OnEnvironmentsSetUpStart(const UnitTest &unit_test) override;
2675 void OnEnvironmentsTearDownStart(const UnitTest &unit_test) override;
2677 void OnTestIterationEnd(const UnitTest &unit_test, int iteration) override;
2681 static void PrintFailedTests(const UnitTest& unit_test);
2688 const UnitTest& unit_test, int iteration) { in OnTestIterationStart() argument
2712 unit_test.random_seed()); in OnTestIterationStart()
2717 FormatTestCount(unit_test.test_to_run_count()).c_str(), in OnTestIterationStart()
2718 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str()); in OnTestIterationStart()
2802 void PrettyUnitTestResultPrinter::PrintFailedTests(const UnitTest& unit_test) { in PrintFailedTests() argument
2803 const int failed_test_count = unit_test.failed_test_count(); in PrintFailedTests()
2808 for (int i = 0; i < unit_test.total_test_case_count(); ++i) { in PrintFailedTests()
2809 const TestCase& test_case = *unit_test.GetTestCase(i); in PrintFailedTests()
2826 void PrettyUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
2830 FormatTestCount(unit_test.test_to_run_count()).c_str(), in OnTestIterationEnd()
2831 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str()); in OnTestIterationEnd()
2834 internal::StreamableToString(unit_test.elapsed_time()).c_str()); in OnTestIterationEnd()
2838 printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str()); in OnTestIterationEnd()
2840 int num_failures = unit_test.failed_test_count(); in OnTestIterationEnd()
2841 if (!unit_test.Passed()) { in OnTestIterationEnd()
2842 const int failed_test_count = unit_test.failed_test_count(); in OnTestIterationEnd()
2845 PrintFailedTests(unit_test); in OnTestIterationEnd()
2850 int num_disabled = unit_test.disabled_test_count(); in OnTestIterationEnd()
2881 void OnTestProgramStart(const UnitTest &unit_test) override;
2882 void OnTestIterationStart(const UnitTest &unit_test, int iteration) override;
2883 void OnEnvironmentsSetUpStart(const UnitTest &unit_test) override;
2884 void OnEnvironmentsSetUpEnd(const UnitTest &unit_test) override;
2890 void OnEnvironmentsTearDownStart(const UnitTest &unit_test) override;
2891 void OnEnvironmentsTearDownEnd(const UnitTest &unit_test) override;
2892 void OnTestIterationEnd(const UnitTest &unit_test, int iteration) override;
2893 void OnTestProgramEnd(const UnitTest &unit_test) override;
2961 void TestEventRepeater::OnTestIterationStart(const UnitTest& unit_test, in GTEST_REPEATER_METHOD_()
2965 listeners_[i]->OnTestIterationStart(unit_test, iteration); in GTEST_REPEATER_METHOD_()
2970 void TestEventRepeater::OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
2974 listeners_[i]->OnTestIterationEnd(unit_test, iteration); in OnTestIterationEnd()
2986 void OnTestIterationEnd(const UnitTest &unit_test, int iteration) override;
3029 static void PrintXmlUnitTest(FILE* out, const UnitTest& unit_test);
3054 void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
3080 PrintXmlUnitTest(xmlout, unit_test); in OnTestIterationEnd()
3266 const UnitTest& unit_test) { in PrintXmlUnitTest() argument
3271 unit_test.total_test_count(), in PrintXmlUnitTest()
3272 unit_test.failed_test_count(), in PrintXmlUnitTest()
3273 unit_test.disabled_test_count(), in PrintXmlUnitTest()
3274 FormatTimeInMillisAsSeconds(unit_test.elapsed_time()).c_str()); in PrintXmlUnitTest()
3276 fprintf(out, "random_seed=\"%d\" ", unit_test.random_seed()); in PrintXmlUnitTest()
3279 for (int i = 0; i < unit_test.total_test_case_count(); ++i) in PrintXmlUnitTest()
3280 PrintXmlTestCase(out, *unit_test.GetTestCase(i)); in PrintXmlUnitTest()
3322 void OnTestProgramEnd(const UnitTest &unit_test) override { in OnTestProgramEnd() argument
3326 unit_test.Passed())); in OnTestProgramEnd()
3338 void OnTestIterationEnd(const UnitTest &unit_test, in OnTestIterationEnd() argument
3341 unit_test.Passed(), in OnTestIterationEnd()
3342 StreamableToString(unit_test.elapsed_time()).c_str())); in OnTestIterationEnd()