Lines Matching refs:test_case
1569 void OnTestCaseStart(const TestCase& test_case) {
1570 SendLn(std::string("event=TestCaseStart&name=") + test_case.name());
1573 void OnTestCaseEnd(const TestCase& test_case) {
1574 SendLn("event=TestCaseEnd&passed=" + FormatBool(test_case.Passed())
1575 + "&elapsed_time=" + StreamableToString(test_case.elapsed_time())
1815 static bool TestCasePassed(const TestCase* test_case) {
1816 return test_case->should_run() && test_case->Passed();
1820 static bool TestCaseFailed(const TestCase* test_case) {
1821 return test_case->should_run() && test_case->Failed();
1824 // Returns true iff test_case contains at least one test that should
1826 static bool ShouldRunTestCase(const TestCase* test_case) {
1827 return test_case->should_run();
3431 const TestCase* const test_case = impl->current_test_case();
3434 const TestInfo* const first_test_info = test_case->test_info_list()[0];
4179 static void PrintTestName(const char * test_case, const char * test) {
4180 printf("%s.%s", test_case, test);
4188 virtual void OnTestCaseStart(const TestCase& test_case);
4192 virtual void OnTestCaseEnd(const TestCase& test_case);
4245 void PrettyUnitTestResultPrinter::OnTestCaseStart(const TestCase& test_case) {
4247 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4249 printf("%s from %s", counts.c_str(), test_case.name());
4250 if (test_case.type_param() == NULL) {
4253 printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param());
4296 void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
4300 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
4303 counts.c_str(), test_case.name(),
4304 internal::StreamableToString(test_case.elapsed_time()).c_str());
4323 const TestCase& test_case = *unit_test.GetTestCase(i);
4324 if (!test_case.should_run() || (test_case.failed_test_count() == 0)) {
4327 for (int j = 0; j < test_case.total_test_count(); ++j) {
4328 const TestInfo& test_info = *test_case.GetTestInfo(j);
4333 printf("%s.%s", test_case.name(), test_info.name());
4399 virtual void OnTestCaseStart(const TestCase& test_case);
4403 virtual void OnTestCaseEnd(const TestCase& test_case);
4550 const TestCase& test_case);
4818 const TestCase& test_case) {
4821 OutputXmlAttribute(stream, kTestsuite, "name", test_case.name());
4823 StreamableToString(test_case.reportable_test_count()));
4825 StreamableToString(test_case.failed_test_count()));
4828 StreamableToString(test_case.reportable_disabled_test_count()));
4831 FormatTimeInMillisAsSeconds(test_case.elapsed_time()));
4832 *stream << TestPropertiesAsXmlAttributes(test_case.ad_hoc_test_result())
4835 for (int i = 0; i < test_case.total_test_count(); ++i) {
4836 if (test_case.GetTestInfo(i)->is_reportable())
4837 OutputXmlTestInfo(stream, test_case.name(), *test_case.GetTestInfo(i));
5636 // Returns true iff the name of test_case matches name_.
5637 bool operator()(const TestCase* test_case) const {
5638 return test_case != NULL && strcmp(test_case->name(), name_.c_str()) == 0;
5662 const std::vector<TestCase*>::const_iterator test_case =
5666 if (test_case != test_cases_.end())
5667 return *test_case;
5952 TestCase* const test_case = test_cases_[i];
5953 const std::string &test_case_name = test_case->name();
5954 test_case->set_should_run(false);
5956 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
5957 TestInfo* const test_info = test_case->test_info_list()[j];
5986 test_case->set_should_run(test_case->should_run() || is_selected);
6020 const TestCase* const test_case = test_cases_[i];
6023 for (size_t j = 0; j < test_case->test_info_list().size(); j++) {
6025 test_case->test_info_list()[j];
6029 printf("%s.", test_case->name());
6030 if (test_case->type_param() != NULL) {
6034 PrintOnOneLine(test_case->type_param(), kMaxParamLength);