summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal/gtest-param-util.h
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2019-01-29 19:32:04 (GMT)
committerGennadiy Civil <misterg@google.com>2019-01-29 19:32:06 (GMT)
commit1f42ae7353b3c52f0fe014da31e5210f266274cc (patch)
tree11cbf31423ec230213c3f526b5330cf8a6acde80 /googletest/include/gtest/internal/gtest-param-util.h
parent01148677a937eae1c0fd1e488ca81445531ea368 (diff)
parent7c4164bf404d899b6d4c74beb1070da5647f55a2 (diff)
downloadgoogletest-1f42ae7353b3c52f0fe014da31e5210f266274cc.zip
googletest-1f42ae7353b3c52f0fe014da31e5210f266274cc.tar.gz
googletest-1f42ae7353b3c52f0fe014da31e5210f266274cc.tar.bz2
Merge pull request #2063 from mathbunnyru:master
PiperOrigin-RevId: 231434457
Diffstat (limited to 'googletest/include/gtest/internal/gtest-param-util.h')
-rw-r--r--googletest/include/gtest/internal/gtest-param-util.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/googletest/include/gtest/internal/gtest-param-util.h b/googletest/include/gtest/internal/gtest-param-util.h
index bca7253..12b1e52 100644
--- a/googletest/include/gtest/internal/gtest-param-util.h
+++ b/googletest/include/gtest/internal/gtest-param-util.h
@@ -378,26 +378,6 @@ std::string DefaultParamName(const TestParamInfo<ParamType>& info) {
// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
//
-// Parameterized test name overload helpers, which help the
-// INSTANTIATE_TEST_SUITE_P macro choose between the default parameterized
-// test name generator and user param name generator.
-template <class ParamType, class ParamNameGenFunctor>
-ParamNameGenFunctor GetParamNameGen(ParamNameGenFunctor func) {
- return func;
-}
-
-template <class ParamType>
-struct ParamNameGenFunc {
- typedef std::string Type(const TestParamInfo<ParamType>&);
-};
-
-template <class ParamType>
-typename ParamNameGenFunc<ParamType>::Type *GetParamNameGen() {
- return DefaultParamName;
-}
-
-// INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE.
-//
// Stores a parameter value and later creates tests parameterized with that
// value.
template <class TestClass>
@@ -500,7 +480,7 @@ class ParameterizedTestSuiteInfo : public ParameterizedTestSuiteInfoBase {
using ParamType = typename TestSuite::ParamType;
// A function that returns an instance of appropriate generator type.
typedef ParamGenerator<ParamType>(GeneratorCreationFunc)();
- typedef typename ParamNameGenFunc<ParamType>::Type ParamNameGeneratorFunc;
+ typedef std::string ParamNameGeneratorFunc(const TestParamInfo<ParamType>&);
explicit ParameterizedTestSuiteInfo(const char* name,
CodeLocation code_location)