Skip to content

Commit 91480a4

Browse files
Merge pull request #3927 from yutotnh:fix-typo
PiperOrigin-RevId: 461699509 Change-Id: I9bab4474c5f52d4d66691dfb96a4d20f89fbcfeb
2 parents 760acf3 + 644a4be commit 91480a4

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

googlemock/test/gmock-actions_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ TEST(DefaultValueOfReferenceTest, IsInitiallyUnset) {
466466
EXPECT_FALSE(DefaultValue<MyNonDefaultConstructible&>::IsSet());
467467
}
468468

469-
// Tests that DefaultValue<T&>::Exists is false initiallly.
469+
// Tests that DefaultValue<T&>::Exists is false initially.
470470
TEST(DefaultValueOfReferenceTest, IsInitiallyNotExisting) {
471471
EXPECT_FALSE(DefaultValue<int&>::Exists());
472472
EXPECT_FALSE(DefaultValue<MyDefaultConstructible&>::Exists());
@@ -807,7 +807,7 @@ TEST(ReturnTest, MoveOnlyResultType) {
807807
"");
808808
}
809809

810-
// Tests that Return(v) is covaraint.
810+
// Tests that Return(v) is covariant.
811811

812812
struct Base {
813813
bool operator==(const Base&) { return true; }

googlemock/test/gmock-matchers-misc_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ TEST(AnyOfArrayTest, Matchers) {
15611561
}
15621562

15631563
TEST_P(AnyOfArrayTestP, ExplainsMatchResultCorrectly) {
1564-
// AnyOfArray and AllOfArry use the same underlying template-template,
1564+
// AnyOfArray and AllOfArray use the same underlying template-template,
15651565
// thus it is sufficient to test one here.
15661566
const std::vector<int> v0{};
15671567
const std::vector<int> v1{1};

googlemock/test/gmock-spec-builders_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ TEST(UnexpectedCallTest, UnmatchedArguments) {
10641064

10651065
// Tests that Google Mock explains that an expectation with
10661066
// unsatisfied pre-requisites doesn't match the call.
1067-
TEST(UnexpectedCallTest, UnsatisifiedPrerequisites) {
1067+
TEST(UnexpectedCallTest, UnsatisfiedPrerequisites) {
10681068
Sequence s1, s2;
10691069
MockB b;
10701070
EXPECT_CALL(b, DoB(1)).InSequence(s1);

googletest/include/gtest/internal/gtest-internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ class TestFactoryBase {
462462
TestFactoryBase& operator=(const TestFactoryBase&) = delete;
463463
};
464464

465-
// This class provides implementation of TeastFactoryBase interface.
465+
// This class provides implementation of TestFactoryBase interface.
466466
// It is used in TEST and TEST_F macros.
467467
template <class TestClass>
468468
class TestFactoryImpl : public TestFactoryBase {

googletest/src/gtest-internal-inl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,9 @@ class GTEST_API_ UnitTestImpl {
507507
virtual ~UnitTestImpl();
508508

509509
// There are two different ways to register your own TestPartResultReporter.
510-
// You can register your own repoter to listen either only for test results
510+
// You can register your own reporter to listen either only for test results
511511
// from the current thread or for results from all threads.
512-
// By default, each per-thread test result repoter just passes a new
512+
// By default, each per-thread test result reporter just passes a new
513513
// TestPartResult to the global test result reporter, which registers the
514514
// test part result for the currently running test.
515515

@@ -850,7 +850,7 @@ class GTEST_API_ UnitTestImpl {
850850
default_per_thread_test_part_result_reporter_;
851851

852852
// Points to (but doesn't own) the global test part result reporter.
853-
TestPartResultReporterInterface* global_test_part_result_repoter_;
853+
TestPartResultReporterInterface* global_test_part_result_reporter_;
854854

855855
// Protects read and write access to global_test_part_result_reporter_.
856856
internal::Mutex global_test_part_result_reporter_mutex_;

googletest/src/gtest.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,14 +1010,14 @@ void DefaultPerThreadTestPartResultReporter::ReportTestPartResult(
10101010
TestPartResultReporterInterface*
10111011
UnitTestImpl::GetGlobalTestPartResultReporter() {
10121012
internal::MutexLock lock(&global_test_part_result_reporter_mutex_);
1013-
return global_test_part_result_repoter_;
1013+
return global_test_part_result_reporter_;
10141014
}
10151015

10161016
// Sets the global test part result reporter.
10171017
void UnitTestImpl::SetGlobalTestPartResultReporter(
10181018
TestPartResultReporterInterface* reporter) {
10191019
internal::MutexLock lock(&global_test_part_result_reporter_mutex_);
1020-
global_test_part_result_repoter_ = reporter;
1020+
global_test_part_result_reporter_ = reporter;
10211021
}
10221022

10231023
// Returns the test part result reporter for the current thread.
@@ -5518,7 +5518,7 @@ UnitTestImpl::UnitTestImpl(UnitTest* parent)
55185518
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4355 /* using this in initializer */)
55195519
default_global_test_part_result_reporter_(this),
55205520
default_per_thread_test_part_result_reporter_(this),
5521-
GTEST_DISABLE_MSC_WARNINGS_POP_() global_test_part_result_repoter_(
5521+
GTEST_DISABLE_MSC_WARNINGS_POP_() global_test_part_result_reporter_(
55225522
&default_global_test_part_result_reporter_),
55235523
per_thread_test_part_result_reporter_(
55245524
&default_per_thread_test_part_result_reporter_),

0 commit comments

Comments
 (0)