Home | History | Annotate | Download | only in src

Lines Matching defs:test_case

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