• Home
  • Raw
  • Download

Lines Matching refs:test_case

305 static bool TestCasePassed(const TestCase* test_case) {  in TestCasePassed()  argument
306 return test_case->should_run() && test_case->Passed(); in TestCasePassed()
310 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument
311 return test_case->should_run() && test_case->Failed(); in TestCaseFailed()
316 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument
317 return test_case->should_run(); in ShouldRunTestCase()
1964 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local
1968 test_case->test_info_list().GetElement(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);
3011 static void PrintXmlTestCase(FILE* out, const TestCase& test_case);
3225 const TestCase& test_case) { in PrintXmlTestCase() argument
3229 EscapeXmlAttribute(test_case.name()).c_str(), in PrintXmlTestCase()
3230 test_case.total_test_count(), in PrintXmlTestCase()
3231 test_case.failed_test_count(), in PrintXmlTestCase()
3232 test_case.disabled_test_count()); in PrintXmlTestCase()
3235 FormatTimeInMillisAsSeconds(test_case.elapsed_time())); in PrintXmlTestCase()
3236 for (int i = 0; i < test_case.total_test_count(); ++i) { in PrintXmlTestCase()
3238 OutputXmlTestInfo(&stream, test_case.name(), *test_case.GetTestInfo(i)); in PrintXmlTestCase()
3842 bool operator()(const TestCase* test_case) const { in UnitTestImpl()
3843 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0; in UnitTestImpl()
3865 TestCase** test_case = test_cases_.FindIf(TestCaseNameIs(test_case_name)); in UnitTestImpl() local
3867 if (test_case != NULL) in UnitTestImpl()
3868 return *test_case; in UnitTestImpl()
4148 TestCase* const test_case = test_cases_.GetElement(i); in UnitTestImpl() local
4149 const String &test_case_name = test_case->name(); in UnitTestImpl()
4150 test_case->set_should_run(false); in UnitTestImpl()
4152 for (int j = 0; j < test_case->test_info_list().size(); j++) { in UnitTestImpl()
4153 TestInfo* const test_info = test_case->test_info_list().GetElement(j); in UnitTestImpl()
4182 test_case->set_should_run(test_case->should_run() || is_selected); in UnitTestImpl()
4191 const TestCase* const test_case = test_cases_.GetElement(i); in UnitTestImpl() local
4194 for (int j = 0; j < test_case->test_info_list().size(); j++) { in UnitTestImpl()
4196 test_case->test_info_list().GetElement(j); in UnitTestImpl()
4200 printf("%s.\n", test_case->name()); in UnitTestImpl()