Lines Matching refs:test_case
324 static bool TestCasePassed(const TestCase* test_case) { in TestCasePassed() argument
325 return test_case->should_run() && test_case->Passed(); in TestCasePassed()
329 static bool TestCaseFailed(const TestCase* test_case) { in TestCaseFailed() argument
330 return test_case->should_run() && test_case->Failed(); in TestCaseFailed()
335 static bool ShouldRunTestCase(const TestCase* test_case) { in ShouldRunTestCase() argument
336 return test_case->should_run(); in ShouldRunTestCase()
1953 const TestCase* const test_case = impl->current_test_case(); in HasSameFixtureClass() local
1956 const TestInfo* const first_test_info = test_case->test_info_list()[0]; in HasSameFixtureClass()
2689 static void PrintTestName(const char * test_case, const char * test) { in PrintTestName() argument
2690 printf("%s.%s", test_case, test); in PrintTestName()
2698 virtual void OnTestCaseStart(const TestCase& test_case);
2702 virtual void OnTestCaseEnd(const TestCase& test_case);
2757 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) { in OnTestCaseStart() argument
2758 test_case_name_ = test_case.name(); in OnTestCaseStart()
2760 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); in OnTestCaseStart()
2763 if (test_case.type_param() == NULL) { in OnTestCaseStart()
2766 printf(", where TypeParam = %s\n", test_case.type_param()); in OnTestCaseStart()
2809 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) { in OnTestCaseEnd() argument
2812 test_case_name_ = test_case.name(); in OnTestCaseEnd()
2814 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests"); in OnTestCaseEnd()
2818 internal::StreamableToString(test_case.elapsed_time()).c_str()); in OnTestCaseEnd()
2837 const TestCase& test_case = *unit_test.GetTestCase(i); in PrintFailedTests() local
2838 if (!test_case.should_run() || (test_case.failed_test_count() == 0)) { in PrintFailedTests()
2841 for (int j = 0; j < test_case.total_test_count(); ++j) { in PrintFailedTests()
2842 const TestInfo& test_info = *test_case.GetTestInfo(j); in PrintFailedTests()
2847 printf("%s.%s", test_case.name(), test_info.name()); in PrintFailedTests()
2913 virtual void OnTestCaseStart(const TestCase& test_case);
2917 virtual void OnTestCaseEnd(const TestCase& test_case);
3054 static void PrintXmlTestCase(FILE* out, const TestCase& test_case);
3273 const TestCase& test_case) { in PrintXmlTestCase() argument
3277 EscapeXmlAttribute(test_case.name()).c_str(), in PrintXmlTestCase()
3278 test_case.total_test_count(), in PrintXmlTestCase()
3279 test_case.failed_test_count(), in PrintXmlTestCase()
3280 test_case.disabled_test_count()); in PrintXmlTestCase()
3283 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str()); in PrintXmlTestCase()
3284 for (int i = 0; i < test_case.total_test_count(); ++i) { in PrintXmlTestCase()
3286 OutputXmlTestInfo(&stream, test_case.name(), *test_case.GetTestInfo(i)); in PrintXmlTestCase()
3371 void OnTestCaseStart(const TestCase& test_case) { in OnTestCaseStart() argument
3372 Send(String::Format("event=TestCaseStart&name=%s\n", test_case.name())); in OnTestCaseStart()
3375 void OnTestCaseEnd(const TestCase& test_case) { in OnTestCaseEnd() argument
3377 test_case.Passed(), in OnTestCaseEnd()
3378 StreamableToString(test_case.elapsed_time()).c_str())); in OnTestCaseEnd()
4076 bool operator()(const TestCase* test_case) const { in operator ()()
4077 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0; in operator ()()
4101 const std::vector<TestCase*>::const_iterator test_case = in GetTestCase() local
4105 if (test_case != test_cases_.end()) in GetTestCase()
4106 return *test_case; in GetTestCase()
4390 TestCase* const test_case = test_cases_[i]; in FilterTests() local
4391 const String &test_case_name = test_case->name(); in FilterTests()
4392 test_case->set_should_run(false); in FilterTests()
4394 for (size_t j = 0; j < test_case->test_info_list().size(); j++) { in FilterTests()
4395 TestInfo* const test_info = test_case->test_info_list()[j]; in FilterTests()
4424 test_case->set_should_run(test_case->should_run() || is_selected); in FilterTests()
4433 const TestCase* const test_case = test_cases_[i]; in ListTestsMatchingFilter() local
4436 for (size_t j = 0; j < test_case->test_info_list().size(); j++) { in ListTestsMatchingFilter()
4438 test_case->test_info_list()[j]; in ListTestsMatchingFilter()
4442 printf("%s.\n", test_case->name()); in ListTestsMatchingFilter()