Lines Matching refs: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];
2661 static void PrintTestName(const char * test_case, const char * test) {
2662 printf("%s.%s", test_case, test);
2670 virtual void OnTestCaseStart(const TestCase& test_case);
2674 virtual void OnTestCaseEnd(const TestCase& test_case);
2729 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
2730 test_case_name_ = test_case.name();
2732 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
2735 if (test_case.type_param() == NULL) {
2738 printf(", where TypeParam = %s\n", test_case.type_param());
2781 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
2784 test_case_name_ = test_case.name();
2786 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
2790 internal::StreamableToString(test_case.elapsed_time()).c_str());
2809 const TestCase& test_case = *unit_test.GetTestCase(i);
2810 if (!test_case.should_run() || (test_case.failed_test_count() == 0)) {
2813 for (int j = 0; j < test_case.total_test_count(); ++j) {
2814 const TestInfo& test_info = *test_case.GetTestInfo(j);
2819 printf("%s.%s", test_case.name(), test_info.name());
2885 virtual void OnTestCaseStart(const TestCase& test_case);
2889 virtual void OnTestCaseEnd(const TestCase& test_case);
3026 static void PrintXmlTestCase(FILE* out, const TestCase& test_case);
3245 const TestCase& test_case) {
3249 EscapeXmlAttribute(test_case.name()).c_str(),
3250 test_case.total_test_count(),
3251 test_case.failed_test_count(),
3252 test_case.disabled_test_count());
3255 FormatTimeInMillisAsSeconds(test_case.elapsed_time()).c_str());
3256 for (int i = 0; i < test_case.total_test_count(); ++i) {
3258 OutputXmlTestInfo(&stream, test_case.name(), *test_case.GetTestInfo(i));
3343 void OnTestCaseStart(const TestCase& test_case) {
3344 Send(String::Format("event=TestCaseStart&name=%s\n", test_case.name()));
3347 void OnTestCaseEnd(const TestCase& test_case) {
3349 test_case.Passed(),
3350 StreamableToString(test_case.elapsed_time()).c_str()));
4043 // Returns true iff the name of test_case matches name_.
4044 bool operator()(const TestCase* test_case) const {
4045 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
4069 const std::vector<TestCase*>::const_iterator test_case =
4073 if (test_case != test_cases_.end())
4074 return *test_case;
4358 TestCase* const test_case = test_cases_[i];
4359 const String &test_case_name = test_case->name();
4360 test_case->set_should_run(false);
4362 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
4363 TestInfo* const test_info = test_case->test_info_list()[j];
4392 test_case->set_should_run(test_case->should_run() || is_selected);
4401 const TestCase* const test_case = test_cases_[i];
4404 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
4406 test_case->test_info_list()[j];
4410 printf("%s.\n", test_case->name());