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
82a57045
Commit
82a57045
authored
Mar 07, 2023
by
Abseil Team
Committed by
Copybara-Service
Mar 07, 2023
Browse files
Apply clang-tidy fixes
PiperOrigin-RevId: 514936218 Change-Id: I24c443a2ca75c875052b0cf2d0a48e808d03ae43
parent
a798c2f1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
16 deletions
+3
-16
googletest/test/googletest-listener-test.cc
googletest/test/googletest-listener-test.cc
+1
-7
googletest/test/googletest-output-test_.cc
googletest/test/googletest-output-test_.cc
+1
-1
googletest/test/googletest-param-test-test.cc
googletest/test/googletest-param-test-test.cc
+1
-1
googletest/test/googletest-printers-test.cc
googletest/test/googletest-printers-test.cc
+0
-1
googletest/test/googletest-shuffle-test_.cc
googletest/test/googletest-shuffle-test_.cc
+0
-1
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+0
-5
No files found.
googletest/test/googletest-listener-test.cc
View file @
82a57045
...
...
@@ -38,13 +38,7 @@
#include "gtest/internal/custom/gtest.h"
using
::
testing
::
AddGlobalTestEnvironment
;
using
::
testing
::
Environment
;
using
::
testing
::
InitGoogleTest
;
using
::
testing
::
Test
;
using
::
testing
::
TestEventListener
;
using
::
testing
::
TestInfo
;
using
::
testing
::
TestPartResult
;
using
::
testing
::
TestSuite
;
using
::
testing
::
UnitTest
;
// Used by tests to register their events.
...
...
@@ -278,7 +272,7 @@ int main(int argc, char** argv) {
AddGlobalTestEnvironment
(
new
EnvironmentInvocationCatcher
);
GTEST_CHECK_
(
events
.
size
()
==
0
)
GTEST_CHECK_
(
events
.
empty
()
)
<<
"AddGlobalTestEnvironment should not generate any events itself."
;
GTEST_FLAG_SET
(
repeat
,
2
);
...
...
googletest/test/googletest-output-test_.cc
View file @
82a57045
...
...
@@ -1025,7 +1025,7 @@ int main(int argc, char** argv) {
std
::
string
(
"internal_skip_environment_and_ad_hoc_tests"
))
>
0
;
#ifdef GTEST_HAS_DEATH_TEST
if
(
GTEST_FLAG_GET
(
internal_run_death_test
)
!=
""
)
{
if
(
!
GTEST_FLAG_GET
(
internal_run_death_test
)
.
empty
()
)
{
// Skip the usual output capturing if we're running as the child
// process of an threadsafe-style death test.
#if defined(GTEST_OS_WINDOWS)
...
...
googletest/test/googletest-param-test-test.cc
View file @
82a57045
...
...
@@ -221,7 +221,7 @@ class DogAdder {
}
DogAdder
operator
+
(
const
DogAdder
&
other
)
const
{
Message
msg
;
msg
<<
value_
.
c_str
()
<<
other
.
value_
.
c_str
()
;
msg
<<
value_
<<
other
.
value_
;
return
DogAdder
(
msg
.
GetString
().
c_str
());
}
bool
operator
<
(
const
DogAdder
&
other
)
const
{
return
value_
<
other
.
value_
;
}
...
...
googletest/test/googletest-printers-test.cc
View file @
82a57045
...
...
@@ -266,7 +266,6 @@ using ::std::set;
using
::
std
::
vector
;
using
::
testing
::
PrintToString
;
using
::
testing
::
internal
::
FormatForComparisonFailureMessage
;
using
::
testing
::
internal
::
ImplicitCast_
;
using
::
testing
::
internal
::
NativeArray
;
using
::
testing
::
internal
::
RelationToSourceReference
;
using
::
testing
::
internal
::
Strings
;
...
...
googletest/test/googletest-shuffle-test_.cc
View file @
82a57045
...
...
@@ -35,7 +35,6 @@ namespace {
using
::
testing
::
EmptyTestEventListener
;
using
::
testing
::
InitGoogleTest
;
using
::
testing
::
Message
;
using
::
testing
::
Test
;
using
::
testing
::
TestEventListeners
;
using
::
testing
::
TestInfo
;
...
...
googletest/test/gtest_unittest.cc
View file @
82a57045
...
...
@@ -211,7 +211,6 @@ using testing::TestPartResult;
using
testing
::
TestPartResultArray
;
using
testing
::
TestProperty
;
using
testing
::
TestResult
;
using
testing
::
TestSuite
;
using
testing
::
TimeInMillis
;
using
testing
::
UnitTest
;
using
testing
::
internal
::
AlwaysFalse
;
...
...
@@ -227,7 +226,6 @@ using testing::internal::FloatingPoint;
using
testing
::
internal
::
ForEach
;
using
testing
::
internal
::
FormatEpochTimeInMillisAsIso8601
;
using
testing
::
internal
::
FormatTimeInMillisAsSeconds
;
using
testing
::
internal
::
GetCurrentOsStackTraceExceptTop
;
using
testing
::
internal
::
GetElementOr
;
using
testing
::
internal
::
GetNextRandomSeed
;
using
testing
::
internal
::
GetRandomSeedFromFlag
;
...
...
@@ -244,8 +242,6 @@ using testing::internal::IsNotContainer;
using
testing
::
internal
::
kMaxRandomSeed
;
using
testing
::
internal
::
kTestTypeIdInGoogleTest
;
using
testing
::
internal
::
NativeArray
;
using
testing
::
internal
::
OsStackTraceGetter
;
using
testing
::
internal
::
OsStackTraceGetterInterface
;
using
testing
::
internal
::
ParseFlag
;
using
testing
::
internal
::
RelationToSourceCopy
;
using
testing
::
internal
::
RelationToSourceReference
;
...
...
@@ -259,7 +255,6 @@ using testing::internal::StreamableToString;
using
testing
::
internal
::
String
;
using
testing
::
internal
::
TestEventListenersAccessor
;
using
testing
::
internal
::
TestResultAccessor
;
using
testing
::
internal
::
UnitTestImpl
;
using
testing
::
internal
::
WideStringToUtf8
;
using
testing
::
internal
::
edit_distance
::
CalculateOptimalEdits
;
using
testing
::
internal
::
edit_distance
::
CreateUnifiedDiff
;
...
...
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