Home | History | Annotate | Download | only in src

Lines Matching refs:test_case

345 static bool TestCasePassed(const TestCase* test_case) {
346 return test_case->should_run() && test_case->Passed();
350 static bool TestCaseFailed(const TestCase* test_case) {
351 return test_case->should_run() && test_case->Failed();
354 // Returns true iff test_case contains at least one test that should
356 static bool ShouldRunTestCase(const TestCase* test_case) {
357 return test_case->should_run();
2271 const TestCase* const test_case = impl->current_test_case();
2274 const TestInfo* const first_test_info = test_case->test_info_list()[0];
3030 static void PrintTestName(const char * test_case, const char * test) {
3031 printf("%s.%s", test_case, test);
3039 virtual void OnTestCaseStart(const TestCase& test_case);
3043 virtual void OnTestCaseEnd(const TestCase& test_case);
3096 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
3098 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
3100 printf("%s from %s", counts.c_str(), test_case.name());
3101 if (test_case.type_param() == NULL) {
3104 printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param());
3147 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
3151 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
3154 counts.c_str(), test_case.name(),
3155 internal::StreamableToString(test_case.elapsed_time()).c_str());
3174 const TestCase& test_case = *unit_test.GetTestCase(i);
3175 if (!test_case.should_run() || (test_case.failed_test_count() == 0)) {
3178 for (int j = 0; j < test_case.total_test_count(); ++j) {
3179 const TestInfo& test_info = *test_case.GetTestInfo(j);
3184 printf("%s.%s", test_case.name(), test_info.name());
3250 virtual void OnTestCaseStart(const TestCase& test_case);
3254 virtual void OnTestCaseEnd(const TestCase& test_case);
3401 const TestCase& test_case);
3674 const TestCase& test_case) {
3677 OutputXmlAttribute(stream, kTestsuite, "name", test_case.name());
3679 StreamableToString(test_case.reportable_test_count()));
3681 StreamableToString(test_case.failed_test_count()));
3684 StreamableToString(test_case.reportable_disabled_test_count()));
3687 FormatTimeInMillisAsSeconds(test_case.elapsed_time()));
3688 *stream << TestPropertiesAsXmlAttributes(test_case.ad_hoc_test_result())
3691 for (int i = 0; i < test_case.total_test_count(); ++i) {
3692 if (test_case.GetTestInfo(i)->is_reportable())
3693 OutputXmlTestInfo(stream, test_case.name(), *test_case.GetTestInfo(i));
4479 // Returns true iff the name of test_case matches name_.
4480 bool operator()(const TestCase* test_case) const {
4481 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
4505 const std::vector<TestCase*>::const_iterator test_case =
4509 if (test_case != test_cases_.end())
4510 return *test_case;
4800 TestCase* const test_case = test_cases_[i];
4801 const std::string &test_case_name = test_case->name();
4802 test_case->set_should_run(false);
4804 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
4805 TestInfo* const test_info = test_case->test_info_list()[j];
4834 test_case->set_should_run(test_case->should_run() || is_selected);
4868 const TestCase* const test_case = test_cases_[i];
4871 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
4873 test_case->test_info_list()[j];
4877 printf("%s.", test_case->name());
4878 if (test_case->type_param() != NULL) {
4882 PrintOnOneLine(test_case->type_param(), kMaxParamLength);