Home | History | Annotate | Download | only in gtest

Lines Matching refs:test_case

1653 static bool TestCasePassed(const TestCase* test_case) {
1654 return test_case->should_run() && test_case->Passed();
1658 static bool TestCaseFailed(const TestCase* test_case) {
1659 return test_case->should_run() && test_case->Failed();
1662 // Returns true iff test_case contains at least one test that should
1664 static bool ShouldRunTestCase(const TestCase* test_case) {
1665 return test_case->should_run();
3330 const TestCase* const test_case = impl->current_test_case();
3334 test_case->test_info_list()[0]->impl();
4006 static void PrintTestName(const char * test_case, const char * test) {
4007 printf("%s.%s", test_case, test);
4015 virtual void OnTestCaseStart(const TestCase& test_case);
4019 virtual void OnTestCaseEnd(const TestCase& test_case);
4073 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
4074 test_case_name_ = test_case.name();
4076 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4079 if (test_case.comment()[0] == '\0') {
4082 printf(", where %s\n", test_case.comment());
4126 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
4129 test_case_name_ = test_case.name();
4131 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4135 internal::StreamableToString(test_case.elapsed_time()).c_str());
4154 const TestCase& test_case = *unit_test.GetTestCase(i);
4155 if (!test_case.should_run() || (test_case.failed_test_count() == 0)) {
4158 for (int j = 0; j < test_case.total_test_count(); ++j) {
4159 const TestInfo& test_info = *test_case.GetTestInfo(j);
4164 printf("%s.%s", test_case.name(), test_info.name());
4165 if (test_case.comment()[0] != '\0' ||
4167 printf(", where %s", test_case.comment());
4168 if (test_case.comment()[0] != '\0' &&
4237 virtual void OnTestCaseStart(const TestCase& test_case);
4241 virtual void OnTestCaseEnd(const TestCase& test_case);
4378 static void PrintXmlTestCase(FILE* out, const TestCase& test_case);
4590 const TestCase& test_case) {
4594 EscapeXmlAttribute(test_case.name()).c_str(),
4595 test_case.total_test_count(),
4596 test_case.failed_test_count(),
4597 test_case.disabled_test_count());
4600 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str());
4601 for (int i = 0; i < test_case.total_test_count(); ++i) {
4603 OutputXmlTestInfo(&stream, test_case.name(), *test_case.GetTestInfo(i));
5205 // Returns true iff the name of test_case matches name_.
5206 bool operator()(const TestCase* test_case) const {
5207 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
5229 const std::vector<TestCase*>::const_iterator test_case =
5233 if (test_case != test_cases_.end())
5234 return *test_case;
5518 TestCase* const test_case = test_cases_[i];
5519 const String &test_case_name = test_case->name();
5520 test_case->set_should_run(false);
5522 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
5523 TestInfo* const test_info = test_case->test_info_list()[j];
5552 test_case->set_should_run(test_case->should_run() || is_selected);
5561 const TestCase* const test_case = test_cases_[i];
5564 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
5566 test_case->test_info_list()[j];
5570 printf("%s.\n", test_case->name());