about summary refs log tree commit diff
path: root/absl/base/BUILD.bazel
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2017-10-30T22·55-0700
committermisterg <misterg@google.com>2017-10-31T14·31-0400
commit8db6cfd1ea64dbd06e69e9c78ec5a2f83846d9ad (patch)
treec9039c9f7e1285e00426e1825de918f917fb6bf0 /absl/base/BUILD.bazel
parentc8bd28c58ba962abfe1b23633cae649099815a56 (diff)
Changes imported from Abseil "staging" branch:
  - 8bcd472c6f1a7c8a3a7aac07d7e5e3f90685fe5e Create an exception-safety testing framework for Abseil by Jon Cohen <cohenjon@google.com>
  - 17cc4bb19ba86e2bc45e9381bd07450c06134903 Fix typo. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 8bcd472c6f1a7c8a3a7aac07d7e5e3f90685fe5e
Change-Id: Ia1f4f12d25c375e0af34fea052a4a82dc964eeff
Diffstat (limited to 'absl/base/BUILD.bazel')
-rw-r--r--absl/base/BUILD.bazel31
1 files changed, 31 insertions, 0 deletions
diff --git a/absl/base/BUILD.bazel b/absl/base/BUILD.bazel
index e68c4500e561..207051254d21 100644
--- a/absl/base/BUILD.bazel
+++ b/absl/base/BUILD.bazel
@@ -226,6 +226,37 @@ cc_library(
     ],
 )
 
+cc_library(
+    name = "pretty_function",
+    hdrs = ["internal/pretty_function.h"],
+)
+
+cc_library(
+    name = "exception_safety_testing",
+    testonly = 1,
+    srcs = ["internal/exception_safety_testing.cc"],
+    hdrs = ["internal/exception_safety_testing.h"],
+    copts = ABSL_TEST_COPTS + ABSL_EXCEPTIONS_FLAG,
+    deps = [
+        ":config",
+        ":pretty_function",
+        "//absl/meta:type_traits",
+        "//absl/strings",
+        "@com_google_googletest//:gtest",
+    ],
+)
+
+cc_test(
+    name = "exception_safety_testing_test",
+    srcs = ["exception_safety_testing_test.cc"],
+    copts = ABSL_TEST_COPTS + ABSL_EXCEPTIONS_FLAG,
+    deps = [
+        ":exception_safety_testing",
+        "//absl/memory",
+        "@com_google_googletest//:gtest_main",
+    ],
+)
+
 cc_test(
     name = "invoke_test",
     size = "small",