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
2f3e2e39
Commit
2f3e2e39
authored
Jul 24, 2021
by
slowy07
Browse files
fix: typo codespelling comment
parent
96f4ce02
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
googlemock/include/gmock/gmock-matchers.h
googlemock/include/gmock/gmock-matchers.h
+1
-1
googlemock/include/gmock/gmock-spec-builders.h
googlemock/include/gmock/gmock-spec-builders.h
+1
-1
googlemock/test/gmock-actions_test.cc
googlemock/test/gmock-actions_test.cc
+1
-1
googletest/src/gtest-death-test.cc
googletest/src/gtest-death-test.cc
+2
-2
googletest/src/gtest.cc
googletest/src/gtest.cc
+2
-2
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+1
-1
No files found.
googlemock/include/gmock/gmock-matchers.h
View file @
2f3e2e39
...
@@ -4950,7 +4950,7 @@ Pair(FirstMatcher first_matcher, SecondMatcher second_matcher) {
...
@@ -4950,7 +4950,7 @@ Pair(FirstMatcher first_matcher, SecondMatcher second_matcher) {
namespace
no_adl
{
namespace
no_adl
{
// Conditional() creates a matcher that conditionally uses either the first or
// Conditional() creates a matcher that conditionally uses either the first or
// second matcher provided. For example, we could create an `equal if, and only
// second matcher provided. For example, we could create an `equal if, and only
// if' matcher using the Conditonal wrapper as follows:
// if' matcher using the Condit
i
onal wrapper as follows:
//
//
// EXPECT_THAT(result, Conditional(condition, Eq(expected), Ne(expected)));
// EXPECT_THAT(result, Conditional(condition, Eq(expected), Ne(expected)));
template
<
typename
MatcherTrue
,
typename
MatcherFalse
>
template
<
typename
MatcherTrue
,
typename
MatcherFalse
>
...
...
googlemock/include/gmock/gmock-spec-builders.h
View file @
2f3e2e39
...
@@ -888,7 +888,7 @@ class GTEST_API_ ExpectationBase {
...
@@ -888,7 +888,7 @@ class GTEST_API_ ExpectationBase {
mutable
Mutex
mutex_
;
// Protects action_count_checked_.
mutable
Mutex
mutex_
;
// Protects action_count_checked_.
};
// class ExpectationBase
};
// class ExpectationBase
// Impements an expectation for the given function type.
// Imp
l
ements an expectation for the given function type.
template
<
typename
F
>
template
<
typename
F
>
class
TypedExpectation
:
public
ExpectationBase
{
class
TypedExpectation
:
public
ExpectationBase
{
public:
public:
...
...
googlemock/test/gmock-actions_test.cc
View file @
2f3e2e39
...
@@ -384,7 +384,7 @@ TEST(ActionInterfaceTest, MakeAction) {
...
@@ -384,7 +384,7 @@ TEST(ActionInterfaceTest, MakeAction) {
EXPECT_EQ
(
5
,
action
.
Perform
(
std
::
make_tuple
(
true
,
5
)));
EXPECT_EQ
(
5
,
action
.
Perform
(
std
::
make_tuple
(
true
,
5
)));
}
}
// Tests that Action<F> can be contructed from a pointer to
// Tests that Action<F> can be con
s
tructed from a pointer to
// ActionInterface<F>.
// ActionInterface<F>.
TEST
(
ActionTest
,
CanBeConstructedFromActionInterface
)
{
TEST
(
ActionTest
,
CanBeConstructedFromActionInterface
)
{
Action
<
MyGlobalFunction
>
action
(
new
MyActionImpl
);
Action
<
MyGlobalFunction
>
action
(
new
MyActionImpl
);
...
...
googletest/src/gtest-death-test.cc
View file @
2f3e2e39
...
@@ -799,8 +799,8 @@ DeathTest::TestRole WindowsDeathTest::AssumeRole() {
...
@@ -799,8 +799,8 @@ DeathTest::TestRole WindowsDeathTest::AssumeRole() {
GTEST_DEATH_TEST_CHECK_
(
GTEST_DEATH_TEST_CHECK_
(
::
CreateProcessA
(
::
CreateProcessA
(
executable_path
,
const_cast
<
char
*>
(
command_line
.
c_str
()),
executable_path
,
const_cast
<
char
*>
(
command_line
.
c_str
()),
nullptr
,
// Retuned process handle is not inheritable.
nullptr
,
// Retu
r
ned process handle is not inheritable.
nullptr
,
// Retuned thread handle is not inheritable.
nullptr
,
// Retu
r
ned thread handle is not inheritable.
TRUE
,
// Child inherits all inheritable handles (for write_handle_).
TRUE
,
// Child inherits all inheritable handles (for write_handle_).
0x0
,
// Default creation flags.
0x0
,
// Default creation flags.
nullptr
,
// Inherit the parent's environment.
nullptr
,
// Inherit the parent's environment.
...
...
googletest/src/gtest.cc
View file @
2f3e2e39
...
@@ -177,7 +177,7 @@ const char kStackTraceMarker[] = "\nStack trace:\n";
...
@@ -177,7 +177,7 @@ const char kStackTraceMarker[] = "\nStack trace:\n";
// is specified on the command line.
// is specified on the command line.
bool
g_help_flag
=
false
;
bool
g_help_flag
=
false
;
// Utilty function to Open File for Writing
// Util
i
ty function to Open File for Writing
static
FILE
*
OpenFileForWriting
(
const
std
::
string
&
output_file
)
{
static
FILE
*
OpenFileForWriting
(
const
std
::
string
&
output_file
)
{
FILE
*
fileout
=
nullptr
;
FILE
*
fileout
=
nullptr
;
FilePath
output_file_path
(
output_file
);
FilePath
output_file_path
(
output_file
);
...
@@ -443,7 +443,7 @@ void AssertHelper::operator=(const Message& message) const {
...
@@ -443,7 +443,7 @@ void AssertHelper::operator=(const Message& message) const {
namespace
{
namespace
{
// When TEST_P is found without a matching INSTANTIATE_TEST_SUITE_P
// When TEST_P is found without a matching INSTANTIATE_TEST_SUITE_P
// to creates test cases for it, a syntetic test case is
// to creates test cases for it, a synt
h
etic test case is
// inserted to report ether an error or a log message.
// inserted to report ether an error or a log message.
//
//
// This configuration bit will likely be removed at some point.
// This configuration bit will likely be removed at some point.
...
...
googletest/test/gtest_unittest.cc
View file @
2f3e2e39
...
@@ -2017,7 +2017,7 @@ void ExpectNonFatalFailureRecordingPropertyWithReservedKeyOutsideOfTestSuite(
...
@@ -2017,7 +2017,7 @@ void ExpectNonFatalFailureRecordingPropertyWithReservedKeyOutsideOfTestSuite(
}
}
// Tests that property recording functions in UnitTest outside of tests
// Tests that property recording functions in UnitTest outside of tests
// functions correcly. Creating a separate instance of UnitTest ensures it
// functions correc
t
ly. Creating a separate instance of UnitTest ensures it
// is in a state similar to the UnitTest's singleton's between tests.
// is in a state similar to the UnitTest's singleton's between tests.
class
UnitTestRecordPropertyTest
:
class
UnitTestRecordPropertyTest
:
public
testing
::
internal
::
UnitTestRecordPropertyTestHelper
{
public
testing
::
internal
::
UnitTestRecordPropertyTestHelper
{
...
...
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