aboutsummaryrefslogtreecommitdiffstats
path: root/include/gtest/internal/gtest-param-util.h
diff options
context:
space:
mode:
authorkosak <kosak@google.com>2013-02-22 20:10:40 +0000
committerkosak <kosak@google.com>2013-02-22 20:10:40 +0000
commitcc1fdb58caf8d5ac9b858f615d3c42267fc5e258 (patch)
tree2821e8cd493ff783f47570fe991fc3ceab776ec7 /include/gtest/internal/gtest-param-util.h
parent65b5c22436fab922ea791b9b39a8fe154f0849f8 (diff)
downloadgoogletest-cc1fdb58caf8d5ac9b858f615d3c42267fc5e258.tar.gz
googletest-cc1fdb58caf8d5ac9b858f615d3c42267fc5e258.tar.bz2
googletest-cc1fdb58caf8d5ac9b858f615d3c42267fc5e258.zip
Removes testing::internal::String::Format(), which causes problems as it truncates the result at 4096 chars. Also update an obsolete link in comment.
Diffstat (limited to 'include/gtest/internal/gtest-param-util.h')
-rw-r--r--include/gtest/internal/gtest-param-util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/gtest/internal/gtest-param-util.h b/include/gtest/internal/gtest-param-util.h
index 0ef9718c..d5e1028b 100644
--- a/include/gtest/internal/gtest-param-util.h
+++ b/include/gtest/internal/gtest-param-util.h
@@ -494,10 +494,10 @@ class ParameterizedTestCaseInfo : public ParameterizedTestCaseInfoBase {
const string& instantiation_name = gen_it->first;
ParamGenerator<ParamType> generator((*gen_it->second)());
- Message test_case_name_stream;
+ string test_case_name;
if ( !instantiation_name.empty() )
- test_case_name_stream << instantiation_name << "/";
- test_case_name_stream << test_info->test_case_base_name;
+ test_case_name = instantiation_name + "/";
+ test_case_name += test_info->test_case_base_name;
int i = 0;
for (typename ParamGenerator<ParamType>::iterator param_it =
@@ -506,7 +506,7 @@ class ParameterizedTestCaseInfo : public ParameterizedTestCaseInfoBase {
Message test_name_stream;
test_name_stream << test_info->test_base_name << "/" << i;
MakeAndRegisterTestInfo(
- test_case_name_stream.GetString().c_str(),
+ test_case_name.c_str(),
test_name_stream.GetString().c_str(),
NULL, // No type parameter.
PrintToString(*param_it).c_str(),