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

#include <gmock-nice-strict.h>

Inheritance diagram for testing::NaggyMock< MockClass >:
testing::internal::NaggyMockImpl< MockClass >

Public Member Functions

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

Detailed Description

template<class MockClass>
class testing::NaggyMock< MockClass >

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

Constructor & Destructor Documentation

◆ NaggyMock() [1/3]

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

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

186 : MockClass() {
187 static_assert(sizeof(*this) == sizeof(MockClass),
188 "The impl subclass shouldn't introduce any padding");
189 }

◆ NaggyMock() [2/3]

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

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

199 : MockClass(std::forward<A>(arg)) {
200 static_assert(sizeof(*this) == sizeof(MockClass),
201 "The impl subclass shouldn't introduce any padding");
202 }

◆ NaggyMock() [3/3]

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

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

206 : MockClass(std::forward<TArg1>(arg1), std::forward<TArg2>(arg2),
207 std::forward<An>(args)...) {
208 static_assert(sizeof(*this) == sizeof(MockClass),
209 "The impl subclass shouldn't introduce any padding");
210 }

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