Lines Matching defs:test_info
2237 TestInfo* const test_info =
2240 GetUnitTestImpl()->AddTestInfo(set_up_tc, tear_down_tc, test_info);
2241 return test_info;
2283 // Returns true iff the test name of test_info matches name_.
2284 bool operator()(const TestInfo * test_info) const {
2285 return test_info && internal::String(test_info->name()).Compare(name_) == 0;
2424 void TestCase::AddTestInfo(TestInfo * test_info) {
2425 test_info_list_.push_back(test_info);
2666 void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
2667 const char* const type_param = test_info.type_param();
2668 const char* const value_param = test_info.value_param();
2699 virtual void OnTestStart(const TestInfo& test_info);
2701 virtual void OnTestEnd(const TestInfo& test_info);
2771 void PrettyUnitTestResultPrinter::OnTestStart(const TestInfo& test_info) {
2773 PrintTestName(test_case_name_.c_str(), test_info.name());
2790 void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
2791 if (test_info.result()->Passed()) {
2796 PrintTestName(test_case_name_.c_str(), test_info.name());
2797 if (test_info.result()->Failed())
2798 PrintFullTestCommentIfPresent(test_info);
2802 test_info.result()->elapsed_time()).c_str());
2842 const TestInfo& test_info = *test_case.GetTestInfo(j);
2843 if (!test_info.should_run() || test_info.result()->Passed()) {
2847 printf("%s.%s", test_case.name(), test_info.name());
2848 PrintFullTestCommentIfPresent(test_info);
2914 virtual void OnTestStart(const TestInfo& test_info);
2916 virtual void OnTestEnd(const TestInfo& test_info);
3051 const TestInfo& test_info);
3226 const TestInfo& test_info) {
3227 const TestResult& result = *test_info.result();
3229 << EscapeXmlAttribute(test_info.name()).c_str() << "\"";
3231 if (test_info.value_param() != NULL) {
3232 *stream << " value_param=\"" << EscapeXmlAttribute(test_info.value_param())
3235 if (test_info.type_param() != NULL) {
3236 *stream << " type_param=\"" << EscapeXmlAttribute(test_info.type_param())
3241 << (test_info.should_run() ? "run" : "notrun")
3381 void OnTestStart(const TestInfo& test_info) {
3382 Send(String::Format("event=TestStart&name=%s\n", test_info.name()));
3385 void OnTestEnd(const TestInfo& test_info) {
3388 (test_info.result())->Passed(),
3389 StreamableToString((test_info.result())->elapsed_time()).c_str()));
4395 TestInfo* const test_info = test_case->test_info_list()[j];
4396 const String test_name(test_info->name());
4404 test_info->is_disabled_ = is_disabled;
4409 test_info->matches_filter_ = matches_filter;
4423 test_info->should_run_ = is_selected;
4437 const TestInfo* const test_info =
4439 if (test_info->matches_filter_) {
4444 printf(" %s\n", test_info->name());