Googletest export

Rewrite InvokeArgument action without using pump.

PiperOrigin-RevId: 340861582
This commit is contained in:
ofats
2020-11-05 11:53:56 -05:00
committed by Andy Getz
parent fb98f7447e
commit 710f9c11ca
3 changed files with 76 additions and 103 deletions

View File

@@ -1539,15 +1539,6 @@ class ActionImpl<Derived<Ts...>> {
std::tuple<Ts...> params_;
};
// internal::InvokeArgument - a helper for InvokeArgument action.
// The basic overloads are provided here for generic functors.
// Overloads for other custom-callables are provided in the
// internal/custom/gmock-generated-actions.h header.
template <typename F, typename... Args>
auto InvokeArgument(F f, Args... args) -> decltype(f(args...)) {
return f(args...);
}
#define GMOCK_INTERNAL_ARG_UNUSED(i, data, el) \
, const arg##i##_type& arg##i GTEST_ATTRIBUTE_UNUSED_
#define GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_ \