mirror of
https://github.com/google/googletest.git
synced 2026-07-30 08:16:27 +08:00
Automated Code Change
PiperOrigin-RevId: 953750672 Change-Id: I9314622e998cb9d17eec0dc1baeb6d8bc8a801fd
This commit is contained in:
parent
56cf341d9c
commit
b78aa5ee64
@ -1243,16 +1243,16 @@ TEST(InvokeWithoutArgsTest, Function) {
|
||||
TEST(InvokeWithoutArgsTest, Functor) {
|
||||
GTEST_DISABLE_DEPRECATED_PUSH_()
|
||||
// As an action that takes no argument.
|
||||
Action<int()> a = InvokeWithoutArgs(NullaryFunctor()); // NOLINT
|
||||
Action<int()> a = NullaryFunctor(); // NOLINT
|
||||
EXPECT_EQ(2, a.Perform(std::make_tuple()));
|
||||
|
||||
// As an action that takes three arguments.
|
||||
Action<int(int, double, char)> a2 = // NOLINT
|
||||
InvokeWithoutArgs(NullaryFunctor());
|
||||
NullaryFunctor();
|
||||
EXPECT_EQ(2, a2.Perform(std::make_tuple(3, 3.5, 'a')));
|
||||
|
||||
// As an action that returns void.
|
||||
Action<void()> a3 = InvokeWithoutArgs(VoidNullaryFunctor());
|
||||
Action<void()> a3 = VoidNullaryFunctor();
|
||||
g_done = false;
|
||||
a3.Perform(std::make_tuple());
|
||||
EXPECT_TRUE(g_done);
|
||||
|
||||
@ -340,7 +340,7 @@ TEST(LinkTest, TestInvokeWithoutArgs) {
|
||||
|
||||
GTEST_DISABLE_DEPRECATED_PUSH_()
|
||||
EXPECT_CALL(mock, VoidFromString(_))
|
||||
.WillOnce(InvokeWithoutArgs(&InvokeHelper::StaticVoidFromVoid))
|
||||
.WillOnce(&InvokeHelper::StaticVoidFromVoid)
|
||||
.WillOnce(
|
||||
InvokeWithoutArgs(&test_invoke_helper, &InvokeHelper::VoidFromVoid));
|
||||
GTEST_DISABLE_DEPRECATED_POP_()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user