• Home
  • Raw
  • Download

Lines Matching refs:test_case

313 static bool TestCasePassed(const TestCase* test_case) {  in TestCasePassed()  argument
314 return test_case->should_run() && test_case->Passed(); in TestCasePassed()
318 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument
319 return test_case->should_run() && test_case->Failed(); in TestCaseFailed()
324 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument
325 return test_case->should_run(); in ShouldRunTestCase()
1990 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local
1994 test_case->test_info_list()[0]->impl(); in HasSameFixtureClass()
2666 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument
2667 printf("%s.%s", test_case, test); in PrintTestName()
2675 virtual void OnTestCaseStart(const TestCase& test_case);
2679 virtual void OnTestCaseEnd(const TestCase& test_case);
2733 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) { in OnTestCaseStart() argument
2734 test_case_name_ = test_case.name(); in OnTestCaseStart()
2736 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); in OnTestCaseStart()
2739 if (test_case.comment()[0] == '\0') { in OnTestCaseStart()
2742 printf(", where %s\n", test_case.comment()); in OnTestCaseStart()
2786 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) { in OnTestCaseEnd() argument
2789 test_case_name_ = test_case.name(); in OnTestCaseEnd()
2791 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); in OnTestCaseEnd()
2795 internal::StreamableToString(test_case.elapsed_time()).c_str()); in OnTestCaseEnd()
2814 const TestCase& test_case = *unit_test.GetTestCase(i); in PrintFailedTests() local
2815 if (!test_case.should_run() || (test_case.failed_test_count() == 0)) { in PrintFailedTests()
2818 for (int j = 0; j < test_case.total_test_count(); ++j) { in PrintFailedTests()
2819 const TestInfo& test_info = *test_case.GetTestInfo(j); in PrintFailedTests()
2824 printf("%s.%s", test_case.name(), test_info.name()); in PrintFailedTests()
2825 if (test_case.comment()[0] != '\0' || in PrintFailedTests()
2827 printf(", where %s", test_case.comment()); in PrintFailedTests()
2828 if (test_case.comment()[0] != '\0' && in PrintFailedTests()
2897 virtual void OnTestCaseStart(const TestCase& test_case);
2901 virtual void OnTestCaseEnd(const TestCase& test_case);
3038 static void PrintXmlTestCase(FILE* out, const TestCase& test_case);
3250 const TestCase& test_case) { in PrintXmlTestCase() argument
3254 EscapeXmlAttribute(test_case.name()).c_str(), in PrintXmlTestCase()
3255 test_case.total_test_count(), in PrintXmlTestCase()
3256 test_case.failed_test_count(), in PrintXmlTestCase()
3257 test_case.disabled_test_count()); in PrintXmlTestCase()
3260 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str()); in PrintXmlTestCase()
3261 for (int i = 0; i < test_case.total_test_count(); ++i) { in PrintXmlTestCase()
3263 OutputXmlTestInfo(&stream, test_case.name(), *test_case.GetTestInfo(i)); in PrintXmlTestCase()
3866 bool operator()(const TestCase* test_case) const { in UnitTestImpl()
3867 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0; in UnitTestImpl()
3889 const std::vector<TestCase*>::const_iterator test_case = in UnitTestImpl() local
3893 if (test_case != test_cases_.end()) in UnitTestImpl()
3894 return *test_case; in UnitTestImpl()
4178 TestCase* const test_case = test_cases_[i]; in UnitTestImpl() local
4179 const String &test_case_name = test_case->name(); in UnitTestImpl()
4180 test_case->set_should_run(false); in UnitTestImpl()
4182 for (size_t j = 0; j < test_case->test_info_list().size(); j++) { in UnitTestImpl()
4183 TestInfo* const test_info = test_case->test_info_list()[j]; in UnitTestImpl()
4212 test_case->set_should_run(test_case->should_run() || is_selected); in UnitTestImpl()
4221 const TestCase* const test_case = test_cases_[i]; in UnitTestImpl() local
4224 for (size_t j = 0; j < test_case->test_info_list().size(); j++) { in UnitTestImpl()
4226 test_case->test_info_list()[j]; in UnitTestImpl()
4230 printf("%s.\n", test_case->name()); in UnitTestImpl()