Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
testing::exceptions_internal::ExceptionSafetyTest< T > Class Template Reference

#include <exception_safety_testing.h>

Public Member Functions

template<typename... Contracts>
 ExceptionSafetyTest (const Factory &f, const Operation &op, const Contracts &...contracts)
 
AssertionResult Test () const
 

Private Types

using Contract = std::function< AssertionResult(T *)>
 
using Factory = std::function< std::unique_ptr< T >()>
 
using Operation = std::function< void(T *)>
 

Private Member Functions

template<typename ContractFn >
Contract WrapContract (const ContractFn &contract)
 
Contract WrapContract (StrongGuaranteeTagType)
 

Private Attributes

std::vector< Contractcontracts_
 
Factory factory_
 
Operation operation_
 

Detailed Description

template<typename T>
class testing::exceptions_internal::ExceptionSafetyTest< T >

Definition at line 877 of file exception_safety_testing.h.

Member Typedef Documentation

template<typename T>
using testing::exceptions_internal::ExceptionSafetyTest< T >::Contract = std::function<AssertionResult(T*)>
private

Definition at line 880 of file exception_safety_testing.h.

template<typename T>
using testing::exceptions_internal::ExceptionSafetyTest< T >::Factory = std::function<std::unique_ptr<T>()>
private

Definition at line 878 of file exception_safety_testing.h.

template<typename T>
using testing::exceptions_internal::ExceptionSafetyTest< T >::Operation = std::function<void(T*)>
private

Definition at line 879 of file exception_safety_testing.h.

Constructor & Destructor Documentation

template<typename T>
template<typename... Contracts>
testing::exceptions_internal::ExceptionSafetyTest< T >::ExceptionSafetyTest ( const Factory f,
const Operation op,
const Contracts &...  contracts 
)
inlineexplicit

Definition at line 884 of file exception_safety_testing.h.

Member Function Documentation

template<typename T>
AssertionResult testing::exceptions_internal::ExceptionSafetyTest< T >::Test ( ) const
inline

Definition at line 888 of file exception_safety_testing.h.

template<typename T>
template<typename ContractFn >
Contract testing::exceptions_internal::ExceptionSafetyTest< T >::WrapContract ( const ContractFn &  contract)
inlineprivate

Definition at line 913 of file exception_safety_testing.h.

template<typename T>
Contract testing::exceptions_internal::ExceptionSafetyTest< T >::WrapContract ( StrongGuaranteeTagType  )
inlineprivate

Definition at line 917 of file exception_safety_testing.h.

Member Data Documentation

template<typename T>
std::vector<Contract> testing::exceptions_internal::ExceptionSafetyTest< T >::contracts_
private

Definition at line 923 of file exception_safety_testing.h.

template<typename T>
Factory testing::exceptions_internal::ExceptionSafetyTest< T >::factory_
private

Definition at line 921 of file exception_safety_testing.h.

template<typename T>
Operation testing::exceptions_internal::ExceptionSafetyTest< T >::operation_
private

Definition at line 922 of file exception_safety_testing.h.


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


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:20:00