Classes | Namespaces | Typedefs | Enumerations | Functions
exception_safety_testing.h File Reference
#include <cstddef>
#include <cstdint>
#include <functional>
#include <initializer_list>
#include <iosfwd>
#include <string>
#include <tuple>
#include <unordered_map>
#include "gtest/gtest.h"
#include "absl/base/config.h"
#include "absl/base/internal/pretty_function.h"
#include "absl/memory/memory.h"
#include "absl/meta/type_traits.h"
#include "absl/strings/string_view.h"
#include "absl/strings/substitute.h"
#include "absl/utility/utility.h"
Include dependency graph for exception_safety_testing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  testing::exceptions_internal::ConstructorTracker
 
class  testing::exceptions_internal::DefaultFactory< T >
 
class  testing::exceptions_internal::ExceptionSafetyTest< T >
 
class  testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >
 
class  testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >
 
struct  testing::exceptions_internal::FactoryPtrTypeHelper< Factory >
 
struct  testing::exceptions_internal::IsUniquePtr< T >
 
struct  testing::exceptions_internal::IsUniquePtr< std::unique_ptr< T, D > >
 
struct  testing::exceptions_internal::NoThrowTag
 
struct  testing::ThrowingAllocator< T, Spec >::rebind< U >
 
struct  testing::exceptions_internal::StrongGuaranteeTagType
 
class  testing::exceptions_internal::TestBadAllocException
 
class  testing::exceptions_internal::TestException
 
class  testing::ThrowingAllocator< T, Spec >
 
class  testing::ThrowingBool
 
class  testing::ThrowingValue< Spec >
 
struct  testing::exceptions_internal::TrackedAddress
 
class  testing::exceptions_internal::TrackedObject
 
struct  testing::exceptions_internal::UninitializedT
 

Namespaces

 testing
 
 testing::exceptions_internal
 

Typedefs

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

Enumerations

enum  testing::AllocSpec { testing::AllocSpec::kEverythingThrows = 0, testing::AllocSpec::kNoThrowAllocate = 1 }
 
enum  testing::TypeSpec { testing::TypeSpec::kEverythingThrows = 0, testing::TypeSpec::kNoThrowCopy = 1, testing::TypeSpec::kNoThrowMove = 1 << 1, testing::TypeSpec::kNoThrowNew = 1 << 2 }
 

Functions

testing::AssertionResult testing::exceptions_internal::FailureMessage (const TestException &e, int countdown) noexcept
 
std::string testing::exceptions_internal::GetSpecString (TypeSpec spec)
 
std::string testing::exceptions_internal::GetSpecString (AllocSpec spec)
 
exceptions_internal::ExceptionSafetyTestBuilder testing::MakeExceptionSafetyTester ()
 
void testing::exceptions_internal::MaybeThrow (absl::string_view msg, bool throw_bad_alloc)
 
constexpr TypeSpec testing::operator & (TypeSpec a, TypeSpec b)
 
constexpr AllocSpec testing::operator & (AllocSpec a, AllocSpec b)
 
template<TypeSpec Spec, typename T >
void testing::operator, (const ThrowingValue< Spec > &, T &&)=delete
 
template<TypeSpec Spec, typename T >
void testing::operator, (T &&, const ThrowingValue< Spec > &)=delete
 
constexpr TypeSpec testing::operator| (TypeSpec a, TypeSpec b)
 
constexpr AllocSpec testing::operator| (AllocSpec a, AllocSpec b)
 
void testing::exceptions_internal::SetCountdown (int i=0)
 
template<typename Operation >
testing::AssertionResult testing::TestNothrowOp (const Operation &operation)
 
template<typename T , typename... Args>
void testing::TestThrowingCtor (Args &&... args)
 
void testing::exceptions_internal::UnsetCountdown ()
 


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