proxygen
testing::internal::ReturnNullAction Class Reference

#include <gmock-actions.h>

Static Public Member Functions

template<typename Result , typename ArgumentTuple >
static Result Perform (const ArgumentTuple &)
 
template<typename Result , typename ArgumentTuple >
static Result Perform (const ArgumentTuple &)
 
template<typename Result , typename ArgumentTuple >
static Result Perform (const ArgumentTuple &)
 

Detailed Description

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

Member Function Documentation

template<typename Result , typename ArgumentTuple >
static Result testing::internal::ReturnNullAction::Perform ( const ArgumentTuple &  )
inlinestatic

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

References GTEST_COMPILE_ASSERT_.

629  {
630 #if GTEST_LANG_CXX11
631  return nullptr;
632 #else
634  ReturnNull_can_be_used_to_return_a_pointer_only);
635  return NULL;
636 #endif // GTEST_LANG_CXX11
637  }
#define GTEST_COMPILE_ASSERT_(expr, msg)
Definition: gtest-port.h:1032
template<typename Result , typename ArgumentTuple >
static Result testing::internal::ReturnNullAction::Perform ( const ArgumentTuple &  )
inlinestatic

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

References GTEST_COMPILE_ASSERT_.

629  {
630 #if GTEST_LANG_CXX11
631  return nullptr;
632 #else
634  ReturnNull_can_be_used_to_return_a_pointer_only);
635  return NULL;
636 #endif // GTEST_LANG_CXX11
637  }
#define GTEST_COMPILE_ASSERT_(expr, msg)
Definition: gtest-port.h:1032
template<typename Result , typename ArgumentTuple >
static Result testing::internal::ReturnNullAction::Perform ( const ArgumentTuple &  )
inlinestatic

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

References GTEST_COMPILE_ASSERT_.

629  {
630 #if GTEST_LANG_CXX11
631  return nullptr;
632 #else
634  ReturnNull_can_be_used_to_return_a_pointer_only);
635  return NULL;
636 #endif // GTEST_LANG_CXX11
637  }
#define GTEST_COMPILE_ASSERT_(expr, msg)
Definition: gtest-port.h:1032

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