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
cead3d57
Commit
cead3d57
authored
Mar 03, 2023
by
Abseil Team
Committed by
Copybara-Service
Mar 03, 2023
Browse files
Internal Code Change
PiperOrigin-RevId: 513770561 Change-Id: I82fbed177c6ba4e2e5b776ae3e0255c868e32e25
parent
2d4f2087
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
googlemock/src/gmock-internal-utils.cc
googlemock/src/gmock-internal-utils.cc
+1
-1
googlemock/src/gmock-matchers.cc
googlemock/src/gmock-matchers.cc
+1
-1
googlemock/src/gmock-spec-builders.cc
googlemock/src/gmock-spec-builders.cc
+1
-1
No files found.
googlemock/src/gmock-internal-utils.cc
View file @
cead3d57
...
@@ -87,7 +87,7 @@ GTEST_API_ std::string ConvertIdentifierNameToWords(const char* id_name) {
...
@@ -87,7 +87,7 @@ GTEST_API_ std::string ConvertIdentifierNameToWords(const char* id_name) {
(
!
IsDigit
(
prev_char
)
&&
IsDigit
(
*
p
));
(
!
IsDigit
(
prev_char
)
&&
IsDigit
(
*
p
));
if
(
IsAlNum
(
*
p
))
{
if
(
IsAlNum
(
*
p
))
{
if
(
starts_new_word
&&
result
!=
""
)
result
+=
' '
;
if
(
starts_new_word
&&
!
result
.
empty
()
)
result
+=
' '
;
result
+=
ToLower
(
*
p
);
result
+=
ToLower
(
*
p
);
}
}
}
}
...
...
googlemock/src/gmock-matchers.cc
View file @
cead3d57
...
@@ -53,7 +53,7 @@ GTEST_API_ std::string FormatMatcherDescription(
...
@@ -53,7 +53,7 @@ GTEST_API_ std::string FormatMatcherDescription(
bool
negation
,
const
char
*
matcher_name
,
bool
negation
,
const
char
*
matcher_name
,
const
std
::
vector
<
const
char
*>&
param_names
,
const
Strings
&
param_values
)
{
const
std
::
vector
<
const
char
*>&
param_names
,
const
Strings
&
param_values
)
{
std
::
string
result
=
ConvertIdentifierNameToWords
(
matcher_name
);
std
::
string
result
=
ConvertIdentifierNameToWords
(
matcher_name
);
if
(
param_values
.
size
()
>=
1
)
{
if
(
!
param_values
.
empty
()
)
{
result
+=
" "
+
JoinAsKeyValueTuple
(
param_names
,
param_values
);
result
+=
" "
+
JoinAsKeyValueTuple
(
param_names
,
param_values
);
}
}
return
negation
?
"not ("
+
result
+
")"
:
result
;
return
negation
?
"not ("
+
result
+
")"
:
result
;
...
...
googlemock/src/gmock-spec-builders.cc
View file @
cead3d57
...
@@ -503,7 +503,7 @@ class MockObjectRegistry {
...
@@ -503,7 +503,7 @@ class MockObjectRegistry {
std
::
cout
<<
internal
::
FormatFileLocation
(
state
.
first_used_file
,
std
::
cout
<<
internal
::
FormatFileLocation
(
state
.
first_used_file
,
state
.
first_used_line
);
state
.
first_used_line
);
std
::
cout
<<
" ERROR: this mock object"
;
std
::
cout
<<
" ERROR: this mock object"
;
if
(
state
.
first_used_test
!=
""
)
{
if
(
!
state
.
first_used_test
.
empty
()
)
{
std
::
cout
<<
" (used in test "
<<
state
.
first_used_test_suite
<<
"."
std
::
cout
<<
" (used in test "
<<
state
.
first_used_test_suite
<<
"."
<<
state
.
first_used_test
<<
")"
;
<<
state
.
first_used_test
<<
")"
;
}
}
...
...
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