Classes | Typedefs | Functions | Variables
testing::exceptions_internal Namespace Reference

Classes

class  ConstructorTracker
 
class  DefaultFactory
 
class  ExceptionSafetyTest
 
class  ExceptionSafetyTestBuilder
 
struct  FactoryPtrTypeHelper
 
struct  IsUniquePtr
 
struct  IsUniquePtr< std::unique_ptr< T, D > >
 
struct  NoThrowTag
 
struct  StrongGuaranteeTagType
 
class  TestBadAllocException
 
class  TestException
 
struct  TrackedAddress
 
class  TrackedObject
 
struct  UninitializedT
 

Typedefs

template<size_t LazyContractsCount, typename LazyFactory , typename LazyOperation >
using EnableIfTestable = typename absl::enable_if_t< LazyContractsCount !=0 &&!std::is_same< LazyFactory, UninitializedT >::value &&!std::is_same< LazyOperation, UninitializedT >::value >
 
template<typename Factory >
using FactoryElementType = typename FactoryPtrType< Factory >::element_type
 
template<typename Factory >
using FactoryPtrType = typename FactoryPtrTypeHelper< Factory >::type
 

Functions

testing::AssertionResult FailureMessage (const TestException &e, int countdown) noexcept
 
std::string GetSpecString (TypeSpec spec)
 
std::string GetSpecString (AllocSpec spec)
 
void MaybeThrow (absl::string_view msg, bool throw_bad_alloc)
 
void SetCountdown (int i=0)
 
void UnsetCountdown ()
 

Variables

int countdown = -1
 

Typedef Documentation

◆ EnableIfTestable

template<size_t LazyContractsCount, typename LazyFactory , typename LazyOperation >
using testing::exceptions_internal::EnableIfTestable = typedef typename absl::enable_if_t< LazyContractsCount != 0 && !std::is_same<LazyFactory, UninitializedT>::value && !std::is_same<LazyOperation, UninitializedT>::value>

Definition at line 837 of file exception_safety_testing.h.

◆ FactoryElementType

template<typename Factory >
using testing::exceptions_internal::FactoryElementType = typedef typename FactoryPtrType<Factory>::element_type

Definition at line 874 of file exception_safety_testing.h.

◆ FactoryPtrType

template<typename Factory >
using testing::exceptions_internal::FactoryPtrType = typedef typename FactoryPtrTypeHelper<Factory>::type

Definition at line 871 of file exception_safety_testing.h.

Function Documentation

◆ FailureMessage()

testing::AssertionResult testing::exceptions_internal::FailureMessage ( const TestException e,
int  countdown 
)
noexcept

Definition at line 43 of file exception_safety_testing.cc.

◆ GetSpecString() [1/2]

std::string testing::exceptions_internal::GetSpecString ( TypeSpec  spec)

Definition at line 48 of file exception_safety_testing.cc.

◆ GetSpecString() [2/2]

std::string testing::exceptions_internal::GetSpecString ( AllocSpec  spec)

Definition at line 67 of file exception_safety_testing.cc.

◆ MaybeThrow()

void testing::exceptions_internal::MaybeThrow ( absl::string_view  msg,
bool  throw_bad_alloc 
)

Definition at line 36 of file exception_safety_testing.cc.

◆ SetCountdown()

void testing::exceptions_internal::SetCountdown ( int  i = 0)
inline

Definition at line 98 of file exception_safety_testing.h.

◆ UnsetCountdown()

void testing::exceptions_internal::UnsetCountdown ( )
inline

Definition at line 100 of file exception_safety_testing.h.

Variable Documentation

◆ countdown

int testing::exceptions_internal::countdown = -1

Definition at line 32 of file exception_safety_testing.cc.



abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:23