Lines Matching refs:unit_test
705 UnitTestImpl* unit_test) : unit_test_(unit_test) {} in DefaultGlobalTestPartResultReporter() argument
714 UnitTestImpl* unit_test) : unit_test_(unit_test) {} in DefaultPerThreadTestPartResultReporter() argument
3111 void OnTestIterationStart(const UnitTest& unit_test, int iteration) override;
3112 void OnEnvironmentsSetUpStart(const UnitTest& unit_test) override;
3130 void OnEnvironmentsTearDownStart(const UnitTest& unit_test) override;
3132 void OnTestIterationEnd(const UnitTest& unit_test, int iteration) override;
3136 static void PrintFailedTests(const UnitTest& unit_test);
3137 static void PrintSkippedTests(const UnitTest& unit_test);
3142 const UnitTest& unit_test, int iteration) { in OnTestIterationStart() argument
3166 unit_test.random_seed()); in OnTestIterationStart()
3171 FormatTestCount(unit_test.test_to_run_count()).c_str(), in OnTestIterationStart()
3172 FormatTestSuiteCount(unit_test.test_suite_to_run_count()).c_str()); in OnTestIterationStart()
3289 void PrettyUnitTestResultPrinter::PrintFailedTests(const UnitTest& unit_test) { in PrintFailedTests() argument
3290 const int failed_test_count = unit_test.failed_test_count(); in PrintFailedTests()
3295 for (int i = 0; i < unit_test.total_test_suite_count(); ++i) { in PrintFailedTests()
3296 const TestSuite& test_suite = *unit_test.GetTestSuite(i); in PrintFailedTests()
3314 void PrettyUnitTestResultPrinter::PrintSkippedTests(const UnitTest& unit_test) { in PrintSkippedTests() argument
3315 const int skipped_test_count = unit_test.skipped_test_count(); in PrintSkippedTests()
3320 for (int i = 0; i < unit_test.total_test_suite_count(); ++i) { in PrintSkippedTests()
3321 const TestSuite& test_suite = *unit_test.GetTestSuite(i); in PrintSkippedTests()
3337 void PrettyUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
3341 FormatTestCount(unit_test.test_to_run_count()).c_str(), in OnTestIterationEnd()
3342 FormatTestSuiteCount(unit_test.test_suite_to_run_count()).c_str()); in OnTestIterationEnd()
3345 internal::StreamableToString(unit_test.elapsed_time()).c_str()); in OnTestIterationEnd()
3349 printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str()); in OnTestIterationEnd()
3351 const int skipped_test_count = unit_test.skipped_test_count(); in OnTestIterationEnd()
3355 PrintSkippedTests(unit_test); in OnTestIterationEnd()
3358 int num_failures = unit_test.failed_test_count(); in OnTestIterationEnd()
3359 if (!unit_test.Passed()) { in OnTestIterationEnd()
3360 const int failed_test_count = unit_test.failed_test_count(); in OnTestIterationEnd()
3363 PrintFailedTests(unit_test); in OnTestIterationEnd()
3368 int num_disabled = unit_test.reportable_disabled_test_count(); in OnTestIterationEnd()
3399 void OnTestProgramStart(const UnitTest& unit_test) override;
3400 void OnTestIterationStart(const UnitTest& unit_test, int iteration) override;
3401 void OnEnvironmentsSetUpStart(const UnitTest& unit_test) override;
3402 void OnEnvironmentsSetUpEnd(const UnitTest& unit_test) override;
3416 void OnEnvironmentsTearDownStart(const UnitTest& unit_test) override;
3417 void OnEnvironmentsTearDownEnd(const UnitTest& unit_test) override;
3418 void OnTestIterationEnd(const UnitTest& unit_test, int iteration) override;
3419 void OnTestProgramEnd(const UnitTest& unit_test) override;
3494 void TestEventRepeater::OnTestIterationStart(const UnitTest& unit_test, in GTEST_REPEATER_METHOD_()
3498 listeners_[i]->OnTestIterationStart(unit_test, iteration); in GTEST_REPEATER_METHOD_()
3503 void TestEventRepeater::OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
3507 listeners_[i - 1]->OnTestIterationEnd(unit_test, iteration); in OnTestIterationEnd()
3519 void OnTestIterationEnd(const UnitTest& unit_test, int iteration) override;
3578 const UnitTest& unit_test);
3606 void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
3610 PrintXmlUnitTest(&stream, unit_test); in OnTestIterationEnd()
3887 const UnitTest& unit_test) { in PrintXmlUnitTest() argument
3894 StreamableToString(unit_test.reportable_test_count())); in PrintXmlUnitTest()
3896 StreamableToString(unit_test.failed_test_count())); in PrintXmlUnitTest()
3899 StreamableToString(unit_test.reportable_disabled_test_count())); in PrintXmlUnitTest()
3902 FormatTimeInMillisAsSeconds(unit_test.elapsed_time())); in PrintXmlUnitTest()
3905 FormatEpochTimeInMillisAsIso8601(unit_test.start_timestamp())); in PrintXmlUnitTest()
3909 StreamableToString(unit_test.random_seed())); in PrintXmlUnitTest()
3911 *stream << TestPropertiesAsXmlAttributes(unit_test.ad_hoc_test_result()); in PrintXmlUnitTest()
3916 for (int i = 0; i < unit_test.total_test_suite_count(); ++i) { in PrintXmlUnitTest()
3917 if (unit_test.GetTestSuite(i)->reportable_test_count() > 0) in PrintXmlUnitTest()
3918 PrintXmlTestSuite(stream, *unit_test.GetTestSuite(i)); in PrintXmlUnitTest()
3985 void OnTestIterationEnd(const UnitTest& unit_test, int iteration) override;
4021 const UnitTest& unit_test);
4042 void JsonUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, in OnTestIterationEnd() argument
4046 PrintJsonUnitTest(&stream, unit_test); in OnTestIterationEnd()
4271 const UnitTest& unit_test) { in PrintJsonUnitTest() argument
4276 OutputJsonKey(stream, kTestsuites, "tests", unit_test.reportable_test_count(), in PrintJsonUnitTest()
4278 OutputJsonKey(stream, kTestsuites, "failures", unit_test.failed_test_count(), in PrintJsonUnitTest()
4281 unit_test.reportable_disabled_test_count(), kIndent); in PrintJsonUnitTest()
4284 OutputJsonKey(stream, kTestsuites, "random_seed", unit_test.random_seed(), in PrintJsonUnitTest()
4288 FormatEpochTimeInMillisAsRFC3339(unit_test.start_timestamp()), in PrintJsonUnitTest()
4291 FormatTimeInMillisAsDuration(unit_test.elapsed_time()), kIndent, in PrintJsonUnitTest()
4294 *stream << TestPropertiesAsJson(unit_test.ad_hoc_test_result(), kIndent) in PrintJsonUnitTest()
4301 for (int i = 0; i < unit_test.total_test_suite_count(); ++i) { in PrintJsonUnitTest()
4302 if (unit_test.GetTestSuite(i)->reportable_test_count() > 0) { in PrintJsonUnitTest()
4308 PrintJsonTestSuite(stream, *unit_test.GetTestSuite(i)); in PrintJsonUnitTest()