Electroneum
Loading...
Searching...
No Matches
testing::internal::ReturnAction< R > Class Template Reference

#include <gmock-actions.h>

Public Member Functions

 ReturnAction (R value)
template<typename F>
 operator Action< F > () const

Detailed Description

template<typename R>
class testing::internal::ReturnAction< R >

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

Constructor & Destructor Documentation

◆ ReturnAction()

template<typename R>
testing::internal::ReturnAction< R >::ReturnAction ( R value)
inlineexplicit

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

Here is the call graph for this function:

Member Function Documentation

◆ operator Action< F >()

template<typename R>
template<typename F>
testing::internal::ReturnAction< R >::operator Action< F > ( ) const
inline

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

544 {
545 // Assert statement belongs here because this is the best place to verify
546 // conditions on F. It produces the clearest error messages
547 // in most compilers.
548 // Impl really belongs in this scope as a local class but can't
549 // because MSVC produces duplicate symbols in different translation units
550 // in this case. Until MS fixes that bug we put Impl into the class scope
551 // and put the typedef both here (for use in assert statement) and
552 // in the Impl class. But both definitions must be the same.
553 typedef typename Function<F>::Result Result;
557 return Action<F>(new Impl<R, F>(value_));
558 }
#define GTEST_COMPILE_ASSERT_(expr, msg)

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h