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
644a4bea
Unverified
Commit
644a4bea
authored
Jul 01, 2022
by
yutotnh
Browse files
fix: some typos in source
parent
6c57d607
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
googletest/src/gtest-internal-inl.h
googletest/src/gtest-internal-inl.h
+1
-1
googletest/src/gtest.cc
googletest/src/gtest.cc
+3
-3
No files found.
googletest/src/gtest-internal-inl.h
View file @
644a4bea
...
@@ -850,7 +850,7 @@ class GTEST_API_ UnitTestImpl {
...
@@ -850,7 +850,7 @@ class GTEST_API_ UnitTestImpl {
default_per_thread_test_part_result_reporter_
;
default_per_thread_test_part_result_reporter_
;
// Points to (but doesn't own) the global test part result reporter.
// Points to (but doesn't own) the global test part result reporter.
TestPartResultReporterInterface
*
global_test_part_result_repoter_
;
TestPartResultReporterInterface
*
global_test_part_result_repo
r
ter_
;
// Protects read and write access to global_test_part_result_reporter_.
// Protects read and write access to global_test_part_result_reporter_.
internal
::
Mutex
global_test_part_result_reporter_mutex_
;
internal
::
Mutex
global_test_part_result_reporter_mutex_
;
...
...
googletest/src/gtest.cc
View file @
644a4bea
...
@@ -1008,14 +1008,14 @@ void DefaultPerThreadTestPartResultReporter::ReportTestPartResult(
...
@@ -1008,14 +1008,14 @@ void DefaultPerThreadTestPartResultReporter::ReportTestPartResult(
TestPartResultReporterInterface
*
TestPartResultReporterInterface
*
UnitTestImpl
::
GetGlobalTestPartResultReporter
()
{
UnitTestImpl
::
GetGlobalTestPartResultReporter
()
{
internal
::
MutexLock
lock
(
&
global_test_part_result_reporter_mutex_
);
internal
::
MutexLock
lock
(
&
global_test_part_result_reporter_mutex_
);
return
global_test_part_result_repoter_
;
return
global_test_part_result_repo
r
ter_
;
}
}
// Sets the global test part result reporter.
// Sets the global test part result reporter.
void
UnitTestImpl
::
SetGlobalTestPartResultReporter
(
void
UnitTestImpl
::
SetGlobalTestPartResultReporter
(
TestPartResultReporterInterface
*
reporter
)
{
TestPartResultReporterInterface
*
reporter
)
{
internal
::
MutexLock
lock
(
&
global_test_part_result_reporter_mutex_
);
internal
::
MutexLock
lock
(
&
global_test_part_result_reporter_mutex_
);
global_test_part_result_repoter_
=
reporter
;
global_test_part_result_repo
r
ter_
=
reporter
;
}
}
// Returns the test part result reporter for the current thread.
// Returns the test part result reporter for the current thread.
...
@@ -5516,7 +5516,7 @@ UnitTestImpl::UnitTestImpl(UnitTest* parent)
...
@@ -5516,7 +5516,7 @@ UnitTestImpl::UnitTestImpl(UnitTest* parent)
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4355
/* using this in initializer */
)
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4355
/* using this in initializer */
)
default_global_test_part_result_reporter_
(
this
),
default_global_test_part_result_reporter_
(
this
),
default_per_thread_test_part_result_reporter_
(
this
),
default_per_thread_test_part_result_reporter_
(
this
),
GTEST_DISABLE_MSC_WARNINGS_POP_
()
global_test_part_result_repoter_
(
GTEST_DISABLE_MSC_WARNINGS_POP_
()
global_test_part_result_repo
r
ter_
(
&
default_global_test_part_result_reporter_
),
&
default_global_test_part_result_reporter_
),
per_thread_test_part_result_reporter_
(
per_thread_test_part_result_reporter_
(
&
default_per_thread_test_part_result_reporter_
),
&
default_per_thread_test_part_result_reporter_
),
...
...
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