17 #include "gtest/gtest.h" 30 namespace exceptions_internal {
37 if (countdown-- == 0) {
44 int countdown) noexcept {
45 return testing::AssertionFailure() <<
"Exception thrown from " << e.what();
56 append(
"kNoThrowCopy");
59 append(
"kNoThrowMove");
62 append(
"kNoThrowNew");
exceptions_internal::StrongGuaranteeTagType strong_guarantee
void StrAppend(std::string *dest, const AlphaNum &a)
testing::AssertionResult FailureMessage(const TestException &e, int countdown) noexcept
exceptions_internal::ExceptionSafetyTestBuilder MakeExceptionSafetyTester()
static ConstructorTracker * current_tracker_instance_
exceptions_internal::NoThrowTag nothrow_ctor
std::string GetSpecString(TypeSpec spec)
void MaybeThrow(absl::string_view msg, bool throw_bad_alloc)