Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::IgnoreResultAction< A > Class Template Reference

#include <gmock-actions.h>

Public Member Functions

 IgnoreResultAction (const A &action)
 
template<typename F >
 operator Action< F > () const
 

Detailed Description

template<typename A>
class testing::internal::IgnoreResultAction< A >

Definition at line 941 of file gmock-actions.h.

Constructor & Destructor Documentation

◆ IgnoreResultAction()

template<typename A >
testing::internal::IgnoreResultAction< A >::IgnoreResultAction ( const A & action)
inlineexplicit

Definition at line 943 of file gmock-actions.h.

943: action_(action) {}

Member Function Documentation

◆ operator Action< F >()

template<typename A >
template<typename F >
testing::internal::IgnoreResultAction< A >::operator Action< F > ( ) const
inline

Definition at line 946 of file gmock-actions.h.

946 {
947 // Assert statement belongs here because this is the best place to verify
948 // conditions on F. It produces the clearest error messages
949 // in most compilers.
950 // Impl really belongs in this scope as a local class but can't
951 // because MSVC produces duplicate symbols in different translation units
952 // in this case. Until MS fixes that bug we put Impl into the class scope
953 // and put the typedef both here (for use in assert statement) and
954 // in the Impl class. But both definitions must be the same.
955 typedef typename internal::Function<F>::Result Result;
956
957 // Asserts at compile time that F returns void.
958 CompileAssertTypesEqual<void, Result>();
959
960 return Action<F>(new Impl<F>(action_));
961 }

The documentation for this class was generated from the following file: