tesseract v5.3.3.20231005
testing::NiceMock< MockClass > Class Template Reference

#include <gmock-nice-strict.h>

Inheritance diagram for testing::NiceMock< MockClass >:
testing::internal::NiceMockImpl< MockClass >

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 136 of file gmock-nice-strict.h.

Constructor & Destructor Documentation

◆ NiceMock() [1/3]

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

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

145 : MockClass() {
146 static_assert(sizeof(*this) == sizeof(MockClass),
147 "The impl subclass shouldn't introduce any padding");
148 }

◆ NiceMock() [2/3]

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

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

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

◆ 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 164 of file gmock-nice-strict.h.

165 : MockClass(std::forward<TArg1>(arg1), std::forward<TArg2>(arg2),
166 std::forward<An>(args)...) {
167 static_assert(sizeof(*this) == sizeof(MockClass),
168 "The impl subclass shouldn't introduce any padding");
169 }

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