summaryrefslogtreecommitdiffstats
path: root/googletest
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-07-09 04:44:49 (GMT)
committerGennadiy Rozental <rogeeff@google.com>2020-07-09 17:35:53 (GMT)
commit70b90929b1da20580cad9ed996397cf04ef8f16d (patch)
treecaceef77b88ae483020ac230190c97643c1dc0b0 /googletest
parentc7f05e08af7ba9e7de8e9cd5e2c6bff965b42635 (diff)
downloadgoogletest-70b90929b1da20580cad9ed996397cf04ef8f16d.zip
googletest-70b90929b1da20580cad9ed996397cf04ef8f16d.tar.gz
googletest-70b90929b1da20580cad9ed996397cf04ef8f16d.tar.bz2
Googletest export
Adding std:: namespace to string in the example PiperOrigin-RevId: 320327910
Diffstat (limited to 'googletest')
-rw-r--r--googletest/docs/advanced.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md
index 60c1a2b..a331938 100644
--- a/googletest/docs/advanced.md
+++ b/googletest/docs/advanced.md
@@ -1490,7 +1490,7 @@ for conciseness:
```c++
enum class MyType { MY_FOO = 0, MY_BAR = 1 };
-class MyTestSuite : public testing::TestWithParam<std::tuple<MyType, string>> {
+class MyTestSuite : public testing::TestWithParam<std::tuple<MyType, std::string>> {
};
INSTANTIATE_TEST_SUITE_P(
@@ -1499,7 +1499,7 @@ INSTANTIATE_TEST_SUITE_P(
testing::Values(MyType::VALUE_0, MyType::VALUE_1),
testing::ValuesIn("", "")),
[](const testing::TestParamInfo<MyTestSuite::ParamType>& info) {
- string name = absl::StrCat(
+ std::string name = absl::StrCat(
std::get<0>(info.param) == MY_FOO ? "Foo" : "Bar", "_",
std::get<1>(info.param));
absl::c_replace_if(name, [](char c) { return !std::isalnum(c); }, '_');