Lines Matching refs:unit_test

631     UnitTestImpl* unit_test) : unit_test_(unit_test) {}
640 UnitTestImpl* unit_test) : unit_test_(unit_test) {}
2642 virtual void OnTestProgramStart(const UnitTest& /*unit_test*/) {}
2643 virtual void OnTestIterationStart(const UnitTest& unit_test, int iteration);
2644 virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test);
2645 virtual void OnEnvironmentsSetUpEnd(const UnitTest& /*unit_test*/) {}
2651 virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test);
2652 virtual void OnEnvironmentsTearDownEnd(const UnitTest& /*unit_test*/) {}
2653 virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration);
2654 virtual void OnTestProgramEnd(const UnitTest& /*unit_test*/) {}
2657 static void PrintFailedTests(const UnitTest& unit_test);
2664 const UnitTest& unit_test, int iteration) {
2687 unit_test.random_seed());
2692 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2693 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2698 const UnitTest& /*unit_test*/) {
2771 const UnitTest& /*unit_test*/) {
2778 void PrettyUnitTestResultPrinter::PrintFailedTests(const UnitTest& unit_test) {
2779 const int failed_test_count = unit_test.failed_test_count();
2784 for (int i = 0; i < unit_test.total_test_case_count(); ++i) {
2785 const TestCase& test_case = *unit_test.GetTestCase(i);
2809 void PrettyUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test,
2813 FormatTestCount(unit_test.test_to_run_count()).c_str(),
2814 FormatTestCaseCount(unit_test.test_case_to_run_count()).c_str());
2817 internal::StreamableToString(unit_test.elapsed_time()).c_str());
2821 printf("%s.\n", FormatTestCount(unit_test.successful_test_count()).c_str());
2823 int num_failures = unit_test.failed_test_count();
2824 if (!unit_test.Passed()) {
2825 const int failed_test_count = unit_test.failed_test_count();
2828 PrintFailedTests(unit_test);
2833 int num_disabled = unit_test.disabled_test_count();
2864 virtual void OnTestProgramStart(const UnitTest& unit_test);
2865 virtual void OnTestIterationStart(const UnitTest& unit_test, int iteration);
2866 virtual void OnEnvironmentsSetUpStart(const UnitTest& unit_test);
2867 virtual void OnEnvironmentsSetUpEnd(const UnitTest& unit_test);
2873 virtual void OnEnvironmentsTearDownStart(const UnitTest& unit_test);
2874 virtual void OnEnvironmentsTearDownEnd(const UnitTest& unit_test);
2875 virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration);
2876 virtual void OnTestProgramEnd(const UnitTest& unit_test);
2946 void TestEventRepeater::OnTestIterationStart(const UnitTest& unit_test,
2950 listeners_.GetElement(i)->OnTestIterationStart(unit_test, iteration);
2955 void TestEventRepeater::OnTestIterationEnd(const UnitTest& unit_test,
2959 listeners_.GetElement(i)->OnTestIterationEnd(unit_test, iteration);
2971 virtual void OnTestIterationEnd(const UnitTest& unit_test, int iteration);
3013 // Prints an XML summary of unit_test to output stream out.
3014 static void PrintXmlUnitTest(FILE* out, const UnitTest& unit_test);
3039 void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test,
3065 PrintXmlUnitTest(xmlout, unit_test);
3244 // Prints an XML summary of unit_test to output stream out.
3246 const UnitTest& unit_test) {
3251 unit_test.total_test_count(),
3252 unit_test.failed_test_count(),
3253 unit_test.disabled_test_count(),
3254 FormatTimeInMillisAsSeconds(unit_test.elapsed_time()));
3256 fprintf(out, "random_seed=\"%d\" ", unit_test.random_seed());
3259 for (int i = 0; i < unit_test.total_test_case_count(); ++i)
3260 PrintXmlTestCase(out, *unit_test.GetTestCase(i));
4302 String GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,