mirror of
https://github.com/google/googletest.git
synced 2025-12-06 16:57:00 +08:00
remove confusing accepts
This commit is contained in:
parent
50360d466a
commit
2da253eec8
@ -102,13 +102,11 @@ COTEST(ServerisedTest, Example1) {
|
|||||||
|
|
||||||
if (auto e1 = e.IS_CALL(mock_object, Mock1)) {
|
if (auto e1 = e.IS_CALL(mock_object, Mock1)) {
|
||||||
// Mock1() is accepted, checked and returned
|
// Mock1() is accepted, checked and returned
|
||||||
e1.ACCEPT();
|
|
||||||
EXPECT_EQ(e1.GetArg<0>(), 1);
|
EXPECT_EQ(e1.GetArg<0>(), 1);
|
||||||
e1.RETURN();
|
e1.RETURN();
|
||||||
} else if (auto e2 = e.IS_CALL(mock_object, Mock2)) {
|
} else if (auto e2 = e.IS_CALL(mock_object, Mock2)) {
|
||||||
// Mock2() is accepted, checked and returned, but we require
|
// Mock2() is accepted, checked and returned, but we require
|
||||||
// it to be followed by a call to MockExtra()
|
// it to be followed by a call to MockExtra()
|
||||||
e2.ACCEPT();
|
|
||||||
EXPECT_EQ(e2.GetArg<0>(), 2);
|
EXPECT_EQ(e2.GetArg<0>(), 2);
|
||||||
e2.RETURN();
|
e2.RETURN();
|
||||||
WAIT_FOR_CALL(mock_object, MockExtra).RETURN();
|
WAIT_FOR_CALL(mock_object, MockExtra).RETURN();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user