Home
last modified time | relevance | path

Searched refs:InvokeArgument (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-more-actions_test.cc707 Action<int(int, int (*)())> a = InvokeArgument<1>(); // NOLINT in TEST()
713 Action<int(UnaryFunctor)> a = InvokeArgument<0>(true); // NOLINT in TEST()
719 Action<int(UnaryMoveOnlyFunctor)> a = InvokeArgument<0>(true); // NOLINT in TEST()
725 Action<int(OneShotUnaryFunctor)> a = InvokeArgument<0>(true); // NOLINT in TEST()
732 InvokeArgument<0>(10000, 2000, 300, 40, 5); in TEST()
739 InvokeArgument<0>(10000, 2000, 300, 40, 5); in TEST()
746 InvokeArgument<0>(100000, 20000, 3000, 400, 50, 6); in TEST()
753 InvokeArgument<0>(100000, 20000, 3000, 400, 50, 6); in TEST()
762 a = InvokeArgument<0>("1", "2", "3", "4", "5", "6", "7"); in TEST()
771 a = InvokeArgument<0>("1", "2", "3", "4", "5", "6", "7", "8"); in TEST()
[all …]
H A Dgmock_link_test.h150 using testing::InvokeArgument;
354 EXPECT_CALL(mock, VoidFromFunc(_)).WillOnce(InvokeArgument<0>(&ch)); in TEST()
/freebsd/contrib/googletest/docs/reference/
H A Dactions.md48 | `InvokeArgument<N>(arg1, arg2, ..., argk)` | Invoke the mock function's `N`-th (0-based) argument…
75 In `InvokeArgument<N>(...)`, if an argument needs to be passed by reference,
79 using ::testing::InvokeArgument;
81 InvokeArgument<2>(5, string("Hi"), std::ref(foo))
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-more-actions.h595 auto InvokeArgument(F &&f,
604 auto operator()(Args &&...args) const -> decltype(internal::InvokeArgument(
611 return internal::InvokeArgument(
650 InvokeArgument(Params &&...params) { in InvokeArgument() function
/freebsd/contrib/googletest/docs/
H A Dgmock_cook_book.md2368 InvokeArgument<N>(arg_1, arg_2, ..., arg_m)
2379 using ::testing::InvokeArgument;
2382 .WillOnce(InvokeArgument<1>(5));
2397 using ::testing::InvokeArgument;
2403 .WillOnce(InvokeArgument<0>(5, std::ref(helper)));
2409 argument in `std::ref()`? Then `InvokeArgument()` will *make a copy* of the
2420 using ::testing::InvokeArgument;
2425 .WillOnce(InvokeArgument<0>(5.0, string("Hi")));
2430 // are kept inside the InvokeArgument action.