Googletest export
Rewrite InvokeArgument action without using pump. PiperOrigin-RevId: 340861582
This commit is contained in:
		@@ -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_                 \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user