• 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()
2637 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument
2638 printf("%s.%s", test_case, test); in PrintTestName()
2646 virtual void OnTestCaseStart(const TestCase& test_case);
2650 virtual void OnTestCaseEnd(const TestCase& test_case);
2704 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) { in OnTestCaseStart() argument
2705 test_case_name_ = test_case.name(); in OnTestCaseStart()
2707 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); in OnTestCaseStart()
2710 if (test_case.comment()[0] == '\0') { in OnTestCaseStart()
2713 printf(", where %s\n", test_case.comment()); in OnTestCaseStart()
2757 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) { in OnTestCaseEnd() argument
2760 test_case_name_ = test_case.name(); in OnTestCaseEnd()
2762 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); in OnTestCaseEnd()
2766 internal::StreamableToString(test_case.elapsed_time()).c_str()); in OnTestCaseEnd()
2785 const TestCase& test_case = *unit_test.GetTestCase(i); in PrintFailedTests() local
2786 if (!test_case.should_run() || (test_case.failed_test_count() == 0)) { in PrintFailedTests()
2789 for (int j = 0; j < test_case.total_test_count(); ++j) { in PrintFailedTests()
2790 const TestInfo& test_info = *test_case.GetTestInfo(j); in PrintFailedTests()
2795 printf("%s.%s", test_case.name(), test_info.name()); in PrintFailedTests()
2796 if (test_case.comment()[0] != '\0' || in PrintFailedTests()
2798 printf(", where %s", test_case.comment()); in PrintFailedTests()
2799 if (test_case.comment()[0] != '\0' && in PrintFailedTests()
2868 virtual void OnTestCaseStart(const TestCase& test_case);
2872 virtual void OnTestCaseEnd(const TestCase& test_case);
3009 static void PrintXmlTestCase(FILE* out, const TestCase& test_case);
3221 const TestCase& test_case) { in PrintXmlTestCase() argument
3225 EscapeXmlAttribute(test_case.name()).c_str(), in PrintXmlTestCase()
3226 test_case.total_test_count(), in PrintXmlTestCase()
3227 test_case.failed_test_count(), in PrintXmlTestCase()
3228 test_case.disabled_test_count()); in PrintXmlTestCase()
3231 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str()); in PrintXmlTestCase()
3232 for (int i = 0; i < test_case.total_test_count(); ++i) { in PrintXmlTestCase()
3234 OutputXmlTestInfo(&stream, test_case.name(), *test_case.GetTestInfo(i)); in PrintXmlTestCase()
3837 bool operator()(const TestCase* test_case) const { in UnitTestImpl()
3838 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0; in UnitTestImpl()
3860 const std::vector<TestCase*>::const_iterator test_case = in UnitTestImpl() local
3864 if (test_case != test_cases_.end()) in UnitTestImpl()
3865 return *test_case; in UnitTestImpl()
4149 TestCase* const test_case = test_cases_[i]; in UnitTestImpl() local
4150 const String &test_case_name = test_case->name(); in UnitTestImpl()
4151 test_case->set_should_run(false); in UnitTestImpl()
4153 for (size_t j = 0; j < test_case->test_info_list().size(); j++) { in UnitTestImpl()
4154 TestInfo* const test_info = test_case->test_info_list()[j]; in UnitTestImpl()
4183 test_case->set_should_run(test_case->should_run() || is_selected); in UnitTestImpl()
4192 const TestCase* const test_case = test_cases_[i]; in UnitTestImpl() local
4195 for (size_t j = 0; j < test_case->test_info_list().size(); j++) { in UnitTestImpl()
4197 test_case->test_info_list()[j]; in UnitTestImpl()
4201 printf("%s.\n", test_case->name()); in UnitTestImpl()