diff options
author | Kane York <kanepyork@gmail.com> | 2020-07-18T23·23-0700 |
---|---|---|
committer | Kane York <rikingcoding@gmail.com> | 2020-07-19T00·51+0000 |
commit | 9f5f71616affc7c3c588bfb97d578bfc61839b37 (patch) | |
tree | 36dcd97947d8669e65a64202c9bd96fc439ab2f5 /third_party/abseil_cpp/absl/status/CMakeLists.txt | |
parent | bd02cae03244cbeff1e90278ee0e8c4e2f5f4d0d (diff) |
feat(3p/absl): import StatusOr from tensorflow r/1391
Additionally, add tests for the macros. A future CL will enable the tests in CI. Change-Id: Id4445a1aa65bf6751b87606f37654f3fc6d20efc Tested-By: kanepyork <rikingcoding@gmail.com> Reviewed-on: https://cl.tvl.fyi/c/depot/+/1274 Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/abseil_cpp/absl/status/CMakeLists.txt')
-rw-r--r-- | third_party/abseil_cpp/absl/status/CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/third_party/abseil_cpp/absl/status/CMakeLists.txt b/third_party/abseil_cpp/absl/status/CMakeLists.txt index c041d69517ef..3b8917e030a5 100644 --- a/third_party/abseil_cpp/absl/status/CMakeLists.txt +++ b/third_party/abseil_cpp/absl/status/CMakeLists.txt @@ -39,6 +39,24 @@ absl_cc_library( PUBLIC ) +absl_cc_library( + NAME + statusor + HDRS + "statusor.h" + SRCS + "statusor.cc" + "statusor_internals.h" + COPTS + ${ABSL_DEFAULT_COPTS} + DEPS + absl::status + absl::atomic_hook + absl::raw_logging_internal + absl::strings + PUBLIC +) + absl_cc_test( NAME status_test @@ -51,3 +69,17 @@ absl_cc_test( absl::strings gmock_main ) + +absl_cc_test( + NAME + statusor_test + SRCS + "statusor_test.cc" + COPTS + ${ABSL_TEST_COPTS} + DEPS + absl::status + absl::statusor + absl::strings + gmock_main +) |