721 {
724 typedef typename GTEST_BIND_(TestSel, Type) TestClass;
725
726
727
729 (std::string(prefix) + (prefix[0] == '\0' ? "" : "/") + case_name +
730 "/" + type_names[static_cast<size_t>(index)])
731 .c_str(),
733 GetTypeName<Type>().c_str(),
734 nullptr,
735 code_location, GetTypeId<FixtureClass>(),
737 code_location.file.c_str(), code_location.line),
739 code_location.file.c_str(), code_location.line),
740 new TestFactoryImpl<TestClass>);
741
742
743 return TypeParameterizedTest<
Fixture, TestSel,
745 code_location,
746 case_name,
747 test_names,
748 index + 1,
749 type_names);
750 }
#define GTEST_BIND_(TmplSel, T)
std::string GetPrefixUntilComma(const char *str)
GTEST_API_ TestInfo * MakeAndRegisterTestInfo(const char *test_suite_name, const char *name, const char *type_param, const char *value_param, CodeLocation code_location, TypeId fixture_class_id, SetUpTestSuiteFunc set_up_tc, TearDownTestSuiteFunc tear_down_tc, TestFactoryBase *factory)
std::string StripTrailingSpaces(std::string str)
static SetUpTearDownSuiteFuncType GetTearDownCaseOrSuite(const char *filename, int line_num)
static SetUpTearDownSuiteFuncType GetSetUpCaseOrSuite(const char *filename, int line_num)
static bool Register(const char *prefix, const CodeLocation &code_location, const char *case_name, const char *test_names, int index, const std::vector< std::string > &type_names=GenerateNames< DefaultNameGenerator, Types >())