Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
0957cce3
Unverified
Commit
0957cce3
authored
Apr 12, 2018
by
Gennadiy Civil
Committed by
GitHub
Apr 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1568 from gennadiycivil/master
merging
parents
6fb65b82
f7330f9f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
gmock-more-actions_test.cc
googlemock/test/gmock-more-actions_test.cc
+7
-9
gmock-spec-builders_test.cc
googlemock/test/gmock-spec-builders_test.cc
+3
-1
No files found.
googlemock/test/gmock-more-actions_test.cc
View file @
0957cce3
...
@@ -327,11 +327,9 @@ TEST(InvokeTest, FunctionThatTakes10Arguments) {
...
@@ -327,11 +327,9 @@ TEST(InvokeTest, FunctionThatTakes10Arguments) {
// Tests using Invoke() with functions with parameters declared as Unused.
// Tests using Invoke() with functions with parameters declared as Unused.
TEST
(
InvokeTest
,
FunctionWithUnusedParameters
)
{
TEST
(
InvokeTest
,
FunctionWithUnusedParameters
)
{
Action
<
int
(
int
,
int
,
double
,
const
string
&
)
>
a1
=
Action
<
int
(
int
,
int
,
double
,
const
std
::
string
&
)
>
a1
=
Invoke
(
SumOfFirst2
);
Invoke
(
SumOfFirst2
);
tuple
<
int
,
int
,
double
,
std
::
string
>
dummy
=
make_tuple
(
10
,
2
,
5.6
,
std
::
string
(
"hi"
));
string
s
(
"hi"
);
EXPECT_EQ
(
12
,
a1
.
Perform
(
dummy
));
EXPECT_EQ
(
12
,
a1
.
Perform
(
tuple
<
int
,
int
,
double
,
const
string
&>
(
10
,
2
,
5.6
,
s
)));
Action
<
int
(
int
,
int
,
bool
,
int
*
)
>
a2
=
Action
<
int
(
int
,
int
,
bool
,
int
*
)
>
a2
=
Invoke
(
SumOfFirst2
);
Invoke
(
SumOfFirst2
);
...
@@ -380,10 +378,10 @@ TEST(InvokeMethodTest, Unary) {
...
@@ -380,10 +378,10 @@ TEST(InvokeMethodTest, Unary) {
// Tests using Invoke() with a binary method.
// Tests using Invoke() with a binary method.
TEST
(
InvokeMethodTest
,
Binary
)
{
TEST
(
InvokeMethodTest
,
Binary
)
{
Foo
foo
;
Foo
foo
;
Action
<
st
ring
(
const
string
&
,
char
)
>
a
=
Invoke
(
&
foo
,
&
Foo
::
Binary
);
Action
<
st
d
::
string
(
const
std
::
string
&
,
char
)
>
a
=
Invoke
(
&
foo
,
&
Foo
::
Binary
);
string
s
(
"Hell"
);
st
d
::
st
ring
s
(
"Hell"
);
EXPECT_EQ
(
"Hello"
,
a
.
Perform
(
tuple
<
std
::
string
,
char
>
dummy
=
make_tuple
(
s
,
'o'
);
tuple
<
const
string
&
,
char
>
(
s
,
'o'
)
));
EXPECT_EQ
(
"Hello"
,
a
.
Perform
(
dummy
));
}
}
// Tests using Invoke() with a ternary method.
// Tests using Invoke() with a ternary method.
...
...
googlemock/test/gmock-spec-builders_test.cc
View file @
0957cce3
...
@@ -2173,7 +2173,9 @@ class GMockVerboseFlagTest : public VerboseFlagPreservingFixture {
...
@@ -2173,7 +2173,9 @@ class GMockVerboseFlagTest : public VerboseFlagPreservingFixture {
"NOTE: You can safely ignore the above warning unless this "
"NOTE: You can safely ignore the above warning unless this "
"call should not happen. Do not suppress it by blindly adding "
"call should not happen. Do not suppress it by blindly adding "
"an EXPECT_CALL() if you don't mean to enforce the call. "
"an EXPECT_CALL() if you don't mean to enforce the call. "
"See https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#"
"See "
"https://github.com/google/googletest/blob/master/googlemock/docs/"
"CookBook.md#"
"knowing-when-to-expect for details."
;
"knowing-when-to-expect for details."
;
// A void-returning function.
// A void-returning function.
...
...
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