Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
70b90929
Commit
70b90929
authored
Jul 09, 2020
by
Abseil Team
Committed by
Gennadiy Rozental
Jul 09, 2020
Browse files
Googletest export
Adding std:: namespace to string in the example PiperOrigin-RevId: 320327910
parent
c7f05e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
googletest/docs/advanced.md
googletest/docs/advanced.md
+2
-2
No files found.
googletest/docs/advanced.md
View file @
70b90929
...
...
@@ -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
);
},
'_'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment