diff options
author | Gennadiy Rozental <rogeeff@google.com> | 2022-10-18 02:34:29 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-10-18 02:35:17 -0700 |
commit | 4bc7568c70822dae40eea3f27a3051a618021651 (patch) | |
tree | b7e9ef7372a4ff1daad77af2eb84e2b230dfc506 /absl/time/BUILD.bazel | |
parent | 94433ef0615616b1ccb8b2193bde777c10406ac0 (diff) |
Eliminate use of internal interfaces and make the test portable and expose it to OSS.
PiperOrigin-RevId: 481865072
Change-Id: I46364ec07df6aaff25911f8bd9e40dfee6c60626
Diffstat (limited to 'absl/time/BUILD.bazel')
-rw-r--r-- | absl/time/BUILD.bazel | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/absl/time/BUILD.bazel b/absl/time/BUILD.bazel index aa07df3d..b5f03980 100644 --- a/absl/time/BUILD.bazel +++ b/absl/time/BUILD.bazel @@ -45,12 +45,14 @@ cc_library( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ "//absl/base", + "//absl/base:config", "//absl/base:core_headers", "//absl/base:raw_logging_internal", "//absl/numeric:int128", "//absl/strings", "//absl/time/internal/cctz:civil_time", "//absl/time/internal/cctz:time_zone", + "//absl/types:optional", ], ) @@ -98,6 +100,30 @@ cc_test( ) cc_test( + name = "flag_test", + srcs = [ + "flag_test.cc", + ], + copts = ABSL_TEST_COPTS, + linkopts = ABSL_DEFAULT_LINKOPTS, + tags = [ + "no_test_android_arm", + "no_test_android_arm64", + "no_test_android_x86", + "no_test_ios_x86_64", + "no_test_loonix", + "no_test_msvc_x64", + "no_test_wasm", + ], + deps = [ + ":time", + "//absl/flags:flag", + "//absl/flags:reflection", + "@com_google_googletest//:gtest_main", + ], +) + +cc_test( name = "time_benchmark", srcs = [ "civil_time_benchmark.cc", |