15 #include "absl/base/internal/throw_delegate.h"
21 #include "absl/base/config.h"
22 #include "gtest/gtest.h"
38 constexpr
const char* what_arg =
"The quick brown fox jumps over the lazy dog";
41 void ExpectThrowChar(
void (*
f)(
const char*)) {
42 #ifdef ABSL_HAVE_EXCEPTIONS
45 FAIL() <<
"Didn't throw";
46 }
catch (
const E& e) {
56 #ifdef ABSL_HAVE_EXCEPTIONS
59 FAIL() <<
"Didn't throw";
60 }
catch (
const E& e) {
69 void ExpectThrowNoWhat(
void (*
f)()) {
70 #ifdef ABSL_HAVE_EXCEPTIONS
73 FAIL() <<
"Didn't throw";
74 }
catch (
const E& e) {