Home | History | Annotate | Download | only in src

Lines Matching defs:test_info

2138   TestInfo* const test_info =
2141 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info);
2142 return test_info;
2219 // Returns true iff the test name of test_info matches name_.
2220 bool operator()(const TestInfo * test_info) const {
2221 return test_info && internal::String(test_info->name()).Compare(name_) == 0;
2376 void TestCase::AddTestInfo(TestInfo * test_info) {
2377 test_info_list_->PushBack(test_info);
2412 bool TestCase::TestPassed(const TestInfo * test_info) {
2413 const internal::TestInfoImpl* const impl = test_info->impl();
2418 bool TestCase::TestFailed(const TestInfo * test_info) {
2419 const internal::TestInfoImpl* const impl = test_info->impl();
2424 bool TestCase::TestDisabled(const TestInfo * test_info) {
2425 return test_info->impl()->is_disabled();
2429 bool TestCase::ShouldRunTest(const TestInfo *test_info) {
2430 return test_info->impl()->should_run();
2647 virtual void OnTestStart(const TestInfo& test_info);
2649 virtual void OnTestEnd(const TestInfo& test_info);
2718 void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) {
2720 PrintTestName(test_case_name_.c_str(), test_info.name());
2721 if (test_info.comment()[0] == '\0') {
2724 printf(", where %s\n", test_info.comment());
2741 void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
2742 if (test_info.result()->Passed()) {
2747 PrintTestName(test_case_name_.c_str(), test_info.name());
2750 test_info.result()->elapsed_time()).c_str());
2790 const TestInfo& test_info = *test_case.GetTestInfo(j);
2791 if (!test_info.should_run() || test_info.result()->Passed()) {
2795 printf("%s.%s", test_case.name(), test_info.name());
2797 test_info.comment()[0] != '\0') {
2800 test_info.comment()[0] != '\0') {
2804 printf("%s\n", test_info.comment());
2869 virtual void OnTestStart(const TestInfo& test_info);
2871 virtual void OnTestEnd(const TestInfo& test_info);
3008 const TestInfo& test_info);
3188 const TestInfo& test_info) {
3189 const TestResult& result = *test_info.result();
3191 << EscapeXmlAttribute(test_info.name()).c_str()
3193 << (test_info.should_run() ? "run" : "notrun")
4153 TestInfo* const test_info = test_case->test_info_list().GetElement(j);
4154 const String test_name(test_info->name());
4162 test_info->impl()->set_is_disabled(is_disabled);
4167 test_info->impl()->set_matches_filter(matches_filter);
4181 test_info->impl()->set_should_run(is_selected);
4195 const TestInfo* const test_info =
4197 if (test_info->matches_filter()) {
4202 printf(" %s\n", test_info->name());