Automated Code Change
PiperOrigin-RevId: 957522754 Change-Id: I824b98844e25a2830518b8a740314092c5282ba9
This commit is contained in:
committed by
Copybara-Service
parent
3940de9189
commit
1b6f64d659
@@ -1224,15 +1224,15 @@ class Foo {
|
||||
TEST(InvokeWithoutArgsTest, Function) {
|
||||
GTEST_DISABLE_DEPRECATED_PUSH_()
|
||||
// As an action that takes one argument.
|
||||
Action<int(int)> a = InvokeWithoutArgs(Nullary); // NOLINT
|
||||
Action<int(int)> a = Nullary; // NOLINT
|
||||
EXPECT_EQ(1, a.Perform(std::make_tuple(2)));
|
||||
|
||||
// As an action that takes two arguments.
|
||||
Action<int(int, double)> a2 = InvokeWithoutArgs(Nullary); // NOLINT
|
||||
Action<int(int, double)> a2 = Nullary; // NOLINT
|
||||
EXPECT_EQ(1, a2.Perform(std::make_tuple(2, 3.5)));
|
||||
|
||||
// As an action that returns void.
|
||||
Action<void(int)> a3 = InvokeWithoutArgs(VoidNullary); // NOLINT
|
||||
Action<void(int)> a3 = VoidNullary; // NOLINT
|
||||
g_done = false;
|
||||
a3.Perform(std::make_tuple(1));
|
||||
EXPECT_TRUE(g_done);
|
||||
|
||||
Reference in New Issue
Block a user