677 {
678 ParameterizedTestCaseInfo<TestCase>* typed_test_info = NULL;
679 for (TestCaseInfoContainer::iterator it = test_case_infos_.begin();
680 it != test_case_infos_.end(); ++it) {
681 if ((*it)->GetTestCaseName() == test_case_name) {
682 if ((*it)->GetTestCaseTypeId() != GetTypeId<TestCase>()) {
683
684
685
688 } else {
689
690
691
693 ParameterizedTestCaseInfo<TestCase> >(*it);
694 }
695 break;
696 }
697 }
698 if (typed_test_info == NULL) {
699 typed_test_info = new ParameterizedTestCaseInfo<TestCase>(
700 test_case_name, code_location);
701 test_case_infos_.push_back(typed_test_info);
702 }
703 return typed_test_info;
704 }
GTEST_API_ void ReportInvalidTestCaseType(const char *test_case_name, CodeLocation code_location)
Derived * CheckedDowncastToActualType(Base *base)