Home | History | Annotate | Download | only in src

Lines Matching defs:test_case

305 static bool TestCasePassed(const TestCase* test_case) {
306 return test_case->should_run() && test_case->Passed();
310 static bool TestCaseFailed(const TestCase* test_case) {
311 return test_case->should_run() && test_case->Failed();
314 // Returns true iff test_case contains at least one test that should
316 static bool ShouldRunTestCase(const TestCase* test_case) {
317 return test_case->should_run();
1994 const TestCase* const test_case = impl->current_test_case();
1998 test_case->test_info_list().GetElement(0)->impl();
2667 static void PrintTestName(const char * test_case, const char * test) {
2668 printf("%s.%s", test_case, test);
2676 virtual void OnTestCaseStart(const TestCase& test_case);
2680 virtual void OnTestCaseEnd(const TestCase& test_case);
2734 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
2735 test_case_name_ = test_case.name();
2737 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
2740 if (test_case.comment()[0] == '\0') {
2743 printf(", where %s\n", test_case.comment());
2787 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
2790 test_case_name_ = test_case.name();
2792 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
2796 internal::StreamableToString(test_case.elapsed_time()).c_str());
2815 const TestCase& test_case = *unit_test.GetTestCase(i);
2816 if (!test_case.should_run() || (test_case.failed_test_count() == 0)) {
2819 for (int j = 0; j < test_case.total_test_count(); ++j) {
2820 const TestInfo& test_info = *test_case.GetTestInfo(j);
2825 printf("%s.%s", test_case.name(), test_info.name());
2826 if (test_case.comment()[0] != '\0' ||
2828 printf(", where %s", test_case.comment());
2829 if (test_case.comment()[0] != '\0' &&
2898 virtual void OnTestCaseStart(const TestCase& test_case);
2902 virtual void OnTestCaseEnd(const TestCase& test_case);
3041 static void PrintXmlTestCase(FILE* out, const TestCase& test_case);
3256 const TestCase& test_case) {
3260 EscapeXmlAttribute(test_case.name()).c_str(),
3261 test_case.total_test_count(),
3262 test_case.failed_test_count(),
3263 test_case.disabled_test_count());
3266 FormatTimeInMillisAsSeconds(test_case.elapsed_time()));
3267 for (int i = 0; i < test_case.total_test_count(); ++i) {
3269 OutputXmlTestInfo(&stream, test_case.name(), *test_case.GetTestInfo(i));
3872 // Returns true iff the name of test_case matches name_.
3873 bool operator()(const TestCase* test_case) const {
3874 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
3896 TestCase** test_case = test_cases_.FindIf(TestCaseNameIs(test_case_name));
3898 if (test_case != NULL)
3899 return *test_case;
4179 TestCase* const test_case = test_cases_.GetElement(i);
4180 const String &test_case_name = test_case->name();
4181 test_case->set_should_run(false);
4183 for (int j = 0; j < test_case->test_info_list().size(); j++) {
4184 TestInfo* const test_info = test_case->test_info_list().GetElement(j);
4213 test_case->set_should_run(test_case->should_run() || is_selected);
4222 const TestCase* const test_case = test_cases_.GetElement(i);
4225 for (int j = 0; j < test_case->test_info_list().size(); j++) {
4227 test_case->test_info_list().GetElement(j);
4231 printf("%s.\n", test_case->name());