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

#include <gmock-nice-strict.h>

Inheritance diagram for testing::StrictMock< MockClass >:
testing::internal::StrictMockImpl< MockClass >

Public Member Functions

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

Detailed Description

template<class MockClass>
class testing::StrictMock< MockClass >

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

Constructor & Destructor Documentation

◆ StrictMock() [1/3]

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

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

227 : MockClass() {
228 static_assert(sizeof(*this) == sizeof(MockClass),
229 "The impl subclass shouldn't introduce any padding");
230 }

◆ StrictMock() [2/3]

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

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

240 : MockClass(std::forward<A>(arg)) {
241 static_assert(sizeof(*this) == sizeof(MockClass),
242 "The impl subclass shouldn't introduce any padding");
243 }

◆ StrictMock() [3/3]

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

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

247 : MockClass(std::forward<TArg1>(arg1), std::forward<TArg2>(arg2),
248 std::forward<An>(args)...) {
249 static_assert(sizeof(*this) == sizeof(MockClass),
250 "The impl subclass shouldn't introduce any padding");
251 }

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