mirror of
https://github.com/google/googletest.git
synced 2024-12-27 10:11:03 +08:00
fix: some typos in source
This commit is contained in:
parent
6c57d607c7
commit
644a4bea02
@ -850,7 +850,7 @@ class GTEST_API_ UnitTestImpl {
|
||||
default_per_thread_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_reporter_;
|
||||
|
||||
// Protects read and write access to global_test_part_result_reporter_.
|
||||
internal::Mutex global_test_part_result_reporter_mutex_;
|
||||
|
@ -1008,14 +1008,14 @@ void DefaultPerThreadTestPartResultReporter::ReportTestPartResult(
|
||||
TestPartResultReporterInterface*
|
||||
UnitTestImpl::GetGlobalTestPartResultReporter() {
|
||||
internal::MutexLock lock(&global_test_part_result_reporter_mutex_);
|
||||
return global_test_part_result_repoter_;
|
||||
return global_test_part_result_reporter_;
|
||||
}
|
||||
|
||||
// Sets the global test part result reporter.
|
||||
void UnitTestImpl::SetGlobalTestPartResultReporter(
|
||||
TestPartResultReporterInterface* reporter) {
|
||||
internal::MutexLock lock(&global_test_part_result_reporter_mutex_);
|
||||
global_test_part_result_repoter_ = reporter;
|
||||
global_test_part_result_reporter_ = reporter;
|
||||
}
|
||||
|
||||
// Returns the test part result reporter for the current thread.
|
||||
@ -5516,7 +5516,7 @@ UnitTestImpl::UnitTestImpl(UnitTest* parent)
|
||||
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4355 /* using this in initializer */)
|
||||
default_global_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_reporter_(
|
||||
&default_global_test_part_result_reporter_),
|
||||
per_thread_test_part_result_reporter_(
|
||||
&default_per_thread_test_part_result_reporter_),
|
||||
|
Loading…
x
Reference in New Issue
Block a user