diff options
author | Gennadiy Civil <misterg@google.com> | 2018-04-13 20:04:34 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-04-13 20:04:34 (GMT) |
commit | d84eb86df5d129f39064e2f3349699e84faf8493 (patch) | |
tree | faaa193f686c1184fdb1adeb267d34cc1fac65df /googlemock/test/gmock-actions_test.cc | |
parent | f45728a5ac69bcbc5c713938ee63591df40e35bb (diff) | |
download | googletest-d84eb86df5d129f39064e2f3349699e84faf8493.zip googletest-d84eb86df5d129f39064e2f3349699e84faf8493.tar.gz googletest-d84eb86df5d129f39064e2f3349699e84faf8493.tar.bz2 |
more pizzarefs/pull/1571/head
Diffstat (limited to 'googlemock/test/gmock-actions_test.cc')
-rw-r--r-- | googlemock/test/gmock-actions_test.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/googlemock/test/gmock-actions_test.cc b/googlemock/test/gmock-actions_test.cc index 646a10c..08f2a55 100644 --- a/googlemock/test/gmock-actions_test.cc +++ b/googlemock/test/gmock-actions_test.cc @@ -1539,10 +1539,9 @@ TEST(FunctorActionTest, TypeConversion) { TEST(FunctorActionTest, UnusedArguments) { // Verify that users can ignore uninteresting arguments. - Action<int(int, double y, const int&)> a = + Action<int(int, double y, double z)> a = [](int i, Unused, Unused) { return 2 * i; }; - int nine = 9; - tuple<int, double, const int&> dummy = make_tuple(3, 7.3, nine); + tuple<int, double, double> dummy = make_tuple(3, 7.3, 9); EXPECT_EQ(6, a.Perform(dummy)); } |