Xmipp  v3.23.11-Nereus
Public Member Functions | List of all members
testing::NiceMock< MockClass > Class Template Reference

#include <gmock-nice-strict.h>

Inheritance diagram for testing::NiceMock< MockClass >:
Inheritance graph
[legend]
Collaboration diagram for testing::NiceMock< MockClass >:
Collaboration graph
[legend]

Public Member Functions

 NiceMock ()
 
template<typename A >
 NiceMock (A &&arg)
 
template<typename TArg1 , typename TArg2 , typename... An>
 NiceMock (TArg1 &&arg1, TArg2 &&arg2, An &&... args)
 

Detailed Description

template<class MockClass>
class testing::NiceMock< MockClass >

Definition at line 74 of file gmock-nice-strict.h.

Constructor & Destructor Documentation

◆ NiceMock() [1/3]

template<class MockClass >
testing::NiceMock< MockClass >::NiceMock ( )
inline

Definition at line 158 of file gmock-nice-strict.h.

158  : MockClass() {
159  static_assert(sizeof(*this) == sizeof(MockClass),
160  "The impl subclass shouldn't introduce any padding");
161  }

◆ NiceMock() [2/3]

template<class MockClass >
template<typename A >
testing::NiceMock< MockClass >::NiceMock ( A &&  arg)
inlineexplicit

Definition at line 171 of file gmock-nice-strict.h.

171  : MockClass(std::forward<A>(arg)) {
172  static_assert(sizeof(*this) == sizeof(MockClass),
173  "The impl subclass shouldn't introduce any padding");
174  }

◆ NiceMock() [3/3]

template<class MockClass >
template<typename TArg1 , typename TArg2 , typename... An>
testing::NiceMock< MockClass >::NiceMock ( TArg1 &&  arg1,
TArg2 &&  arg2,
An &&...  args 
)
inline

Definition at line 177 of file gmock-nice-strict.h.

178  : MockClass(std::forward<TArg1>(arg1), std::forward<TArg2>(arg2),
179  std::forward<An>(args)...) {
180  static_assert(sizeof(*this) == sizeof(MockClass),
181  "The impl subclass shouldn't introduce any padding");
182  }

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