From 90a7ba66e88bf1b6fe98b196208448704766dac0 Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Mon, 23 Dec 2024 10:56:36 -0800 Subject: [PATCH] Updates to CI to support newer versions of tools Linux "latest" containers updated to GCC 14.2 CMake 3.31.2 Bazel 8.0.0 Included are various fixes to get these versions to work. Bazel now references repositories by their canonical names from the Bazel Central Registry. For example, Abseil is now @abseil-cpp instead of @com_google_absl, and GoogleTest is now @googletest instead of @com_google_googletest. Users still using the old WORKSPACE system may need to use `repo_mapping` on repositories using the old names. See `WORKSPACE.bazel` in this commit for an example. PiperOrigin-RevId: 709102146 Change-Id: I02327ed4f8fb947766480bdeef2b1930a7f831eb --- MODULE.bazel | 14 +- WORKSPACE | 25 +-- absl/algorithm/BUILD.bazel | 8 +- absl/base/BUILD.bazel | 124 ++++++------- absl/cleanup/BUILD.bazel | 4 +- absl/container/BUILD.bazel | 124 ++++++------- absl/crc/BUILD.bazel | 18 +- absl/debugging/BUILD.bazel | 42 ++--- absl/flags/BUILD.bazel | 44 ++--- absl/functional/BUILD.bazel | 20 +-- absl/hash/BUILD.bazel | 20 +-- absl/log/BUILD.bazel | 76 ++++---- absl/log/internal/BUILD.bazel | 16 +- absl/memory/BUILD.bazel | 4 +- absl/meta/BUILD.bazel | 4 +- absl/numeric/BUILD.bazel | 16 +- absl/profiling/BUILD.bazel | 14 +- absl/random/BUILD.bazel | 72 ++++---- absl/random/internal/BUILD.bazel | 76 ++++---- absl/status/BUILD.bazel | 14 +- absl/strings/BUILD.bazel | 242 +++++++++++++------------- absl/synchronization/BUILD.bazel | 44 ++--- absl/time/BUILD.bazel | 12 +- absl/time/internal/cctz/BUILD.bazel | 16 +- absl/types/BUILD.bazel | 36 ++-- absl/utility/BUILD.bazel | 8 +- ci/linux_docker_containers.sh | 6 +- ci/linux_gcc-floor_libstdcxx_bazel.sh | 1 - ci/macos_xcode_bazel.sh | 2 +- ci/windows_clangcl_bazel.bat | 2 +- ci/windows_msvc_bazel.bat | 2 +- 31 files changed, 554 insertions(+), 552 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 955428b0abf..9805065391f 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -20,25 +20,27 @@ module( compatibility_level = 1, ) -cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension", dev_dependency = True) +cc_configure = use_extension("@rules_cc//cc:extensions.bzl", + "cc_configure_extension", + dev_dependency = True) use_repo(cc_configure, "local_config_cc") # Only direct dependencies need to be listed below. # Please keep the versions in sync with the versions in the WORKSPACE file. -bazel_dep(name = "rules_cc", version = "0.0.16") -bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "rules_cc", version = "0.1.0") +bazel_dep(name = "bazel_skylib", version = "1.7.1") bazel_dep(name = "platforms", version = "0.0.10") bazel_dep( name = "google_benchmark", - version = "1.8.3", + version = "1.8.5", dev_dependency = True, - repo_name = "com_github_google_benchmark", ) +# Note: Googletest is NOT a dev_dependency. Some Abseil test utilities +# intended to be used by Abseil users depend on GoogleTest. bazel_dep( name = "googletest", version = "1.15.2", - repo_name = "com_google_googletest", ) diff --git a/WORKSPACE b/WORKSPACE index dee6d05e285..3f0aa767699 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -14,42 +14,47 @@ # limitations under the License. # -workspace(name = "com_google_absl") +workspace(name = "abseil-cpp") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # GoogleTest/GoogleMock framework. Used by most unit-tests. http_archive( - name = "com_google_googletest", + name = "googletest", sha256 = "7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926", strip_prefix = "googletest-1.15.2", # Keep this URL in sync with the version in ci/cmake_common.sh and # ci/windows_msvc_cmake.bat. urls = ["https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz"], + # Now that Abseil is using the canonical names from the Bazel Central Registry, map + # GoogleTest's old names to the new canonical names. + repo_mapping = { + "@com_google_absl": "@", + "@com_googlesource_code_re2": "@re2", + }, ) # RE2 (the regular expression library used by GoogleTest) http_archive( - name = "com_googlesource_code_re2", + name = "re2", sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b", strip_prefix = "re2-2024-07-02", urls = ["https://github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz"], - repo_mapping = {"@abseil-cpp": "@com_google_absl"}, ) # Google benchmark. http_archive( - name = "com_github_google_benchmark", - sha256 = "6bc180a57d23d4d9515519f92b0c83d61b05b5bab188961f36ac7b06b0d9e9ce", - strip_prefix = "benchmark-1.8.3", - urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.8.3.tar.gz"], + name = "google_benchmark", + sha256 = "d26789a2b46d8808a48a4556ee58ccc7c497fcd4c0af9b90197674a81e04798a", + strip_prefix = "benchmark-1.8.5", + urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.8.5.tar.gz"], ) # Bazel Skylib. http_archive( name = "bazel_skylib", - sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94", - urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz"], + sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f", + urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz"], ) # Bazel platform rules. diff --git a/absl/algorithm/BUILD.bazel b/absl/algorithm/BUILD.bazel index f20e7290d69..9a723e5b995 100644 --- a/absl/algorithm/BUILD.bazel +++ b/absl/algorithm/BUILD.bazel @@ -51,8 +51,8 @@ cc_test( deps = [ ":algorithm", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -84,7 +84,7 @@ cc_test( "//absl/base:core_headers", "//absl/memory", "//absl/types:span", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/base/BUILD.bazel b/absl/base/BUILD.bazel index 06cd361b8d2..38ec9258262 100644 --- a/absl/base/BUILD.bazel +++ b/absl/base/BUILD.bazel @@ -319,8 +319,8 @@ cc_test( ":atomic_hook", ":atomic_hook_test_helper", ":core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -335,8 +335,8 @@ cc_test( deps = [ ":base", ":core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -375,8 +375,8 @@ cc_test( deps = [ ":config", ":throw_delegate", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -389,8 +389,8 @@ cc_test( deps = [ ":errno_saver", ":strerror", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -405,7 +405,7 @@ cc_library( ], deps = [ ":config", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -432,7 +432,7 @@ cc_library( "//absl/meta:type_traits", "//absl/strings", "//absl/utility", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -444,8 +444,8 @@ cc_test( deps = [ ":exception_safety_testing", "//absl/memory", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -462,8 +462,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":base_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -477,8 +477,8 @@ cc_test( ":base_internal", "//absl/memory", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -496,7 +496,7 @@ cc_library( ":config", ":core_headers", "//absl/synchronization", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], alwayslink = 1, ) @@ -516,8 +516,8 @@ cc_test( ":config", ":core_headers", "//absl/synchronization", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -536,7 +536,7 @@ cc_library( ":no_destructor", ":raw_logging_internal", "//absl/synchronization", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], alwayslink = 1, ) @@ -576,8 +576,8 @@ cc_test( deps = [ ":config", ":endian", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -589,8 +589,8 @@ cc_test( deps = [ ":config", "//absl/synchronization:thread_pool", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -603,8 +603,8 @@ cc_test( ":base", ":core_headers", "//absl/synchronization", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -617,8 +617,8 @@ cc_test( ":config", ":no_destructor", ":raw_logging_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -633,7 +633,7 @@ cc_binary( deps = [ ":no_destructor", ":raw_logging_internal", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -643,8 +643,8 @@ cc_test( deps = [ ":core_headers", ":nullability", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -653,8 +653,8 @@ cc_test( srcs = ["nullability_default_nonnull_test.cc"], deps = [ ":nullability", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -666,8 +666,8 @@ cc_test( deps = [ ":raw_logging_internal", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -680,8 +680,8 @@ cc_test( deps = [ ":base", "//absl/synchronization", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -714,8 +714,8 @@ cc_test( ":base", ":core_headers", "//absl/synchronization", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -729,8 +729,8 @@ cc_test( deps = [ ":base", "//absl/synchronization", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -757,8 +757,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":scoped_set_env", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -773,8 +773,8 @@ cc_test( "//absl/flags:flag_internal", "//absl/flags:marshalling", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -803,8 +803,8 @@ cc_test( deps = [ ":strerror", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -818,7 +818,7 @@ cc_binary( visibility = ["//visibility:private"], deps = [ ":strerror", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -843,8 +843,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":fast_type_id", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -871,8 +871,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":prefetch", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -906,8 +906,8 @@ cc_test( deps = [ ":config", ":poison", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -921,8 +921,8 @@ cc_test( deps = [ ":core_headers", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -935,8 +935,8 @@ cc_test( deps = [ ":core_headers", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -962,8 +962,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":tracing_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -976,7 +976,7 @@ cc_test( ":config", ":core_headers", ":tracing_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/cleanup/BUILD.bazel b/absl/cleanup/BUILD.bazel index 984d571492d..2c202242642 100644 --- a/absl/cleanup/BUILD.bazel +++ b/absl/cleanup/BUILD.bazel @@ -67,7 +67,7 @@ cc_test( ":cleanup", "//absl/base:config", "//absl/utility", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/container/BUILD.bazel b/absl/container/BUILD.bazel index 009e67c21ef..776a516b614 100644 --- a/absl/container/BUILD.bazel +++ b/absl/container/BUILD.bazel @@ -54,8 +54,8 @@ cc_test( "//absl/types:any", "//absl/types:optional", "//absl/utility", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -87,8 +87,8 @@ cc_test( "//absl/base:exception_testing", "//absl/hash:hash_testing", "//absl/memory", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -101,8 +101,8 @@ cc_test( ":fixed_array", "//absl/base:config", "//absl/base:exception_safety_testing", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -115,7 +115,7 @@ cc_binary( tags = ["benchmark"], deps = [ ":fixed_array", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -175,8 +175,8 @@ cc_test( "//absl/log:check", "//absl/memory", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -192,7 +192,7 @@ cc_binary( "//absl/base:core_headers", "//absl/base:raw_logging_internal", "//absl/strings", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -204,8 +204,8 @@ cc_test( ":inlined_vector", "//absl/base:config", "//absl/base:exception_safety_testing", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -229,8 +229,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":test_instance_tracker", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -275,8 +275,8 @@ cc_test( "//absl/log:check", "//absl/meta:type_traits", "//absl/types:any", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -317,8 +317,8 @@ cc_test( "//absl/log:check", "//absl/memory", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -354,8 +354,8 @@ cc_test( ":unordered_map_members_test", ":unordered_map_modifiers_test", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -392,8 +392,8 @@ cc_test( ":unordered_set_modifiers_test", "//absl/base:config", "//absl/memory", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -422,8 +422,8 @@ cc_test( "//absl/base:no_destructor", "//absl/meta:type_traits", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -471,8 +471,8 @@ cc_test( "//absl/strings", "//absl/strings:cord", "//absl/strings:cord_test_helpers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -511,8 +511,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":hash_policy_testing", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -535,8 +535,8 @@ cc_test( deps = [ ":container_memory", ":hash_policy_traits", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -557,8 +557,8 @@ cc_test( deps = [ ":common_policy_traits", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -622,8 +622,8 @@ cc_test( "//absl/synchronization", "//absl/synchronization:thread_pool", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -644,8 +644,8 @@ cc_test( ":hash_policy_traits", ":node_slot_policy", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -736,8 +736,8 @@ cc_test( "//absl/meta:type_traits", "//absl/strings", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -756,7 +756,7 @@ cc_binary( "//absl/base:raw_logging_internal", "//absl/random", "//absl/strings:str_format", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -795,8 +795,8 @@ cc_test( ":raw_hash_set", ":tracked", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -830,8 +830,8 @@ cc_test( "//absl/log:check", "//absl/types:span", "//absl/utility", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -847,7 +847,7 @@ cc_binary( ":layout", "//absl/base:core_headers", "//absl/base:raw_logging_internal", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -871,7 +871,7 @@ cc_library( deps = [ ":hash_generator_testing", ":hash_policy_testing", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -884,7 +884,7 @@ cc_library( deps = [ ":hash_generator_testing", ":hash_policy_testing", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -897,7 +897,7 @@ cc_library( deps = [ ":hash_generator_testing", ":hash_policy_testing", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -911,7 +911,7 @@ cc_library( ":hash_generator_testing", ":hash_policy_testing", "//absl/meta:type_traits", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -923,7 +923,7 @@ cc_library( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ "//absl/meta:type_traits", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -935,7 +935,7 @@ cc_library( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ "//absl/meta:type_traits", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -948,7 +948,7 @@ cc_library( deps = [ ":hash_generator_testing", ":hash_policy_testing", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -961,7 +961,7 @@ cc_library( deps = [ ":hash_generator_testing", ":hash_policy_testing", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -976,8 +976,8 @@ cc_test( ":unordered_set_lookup_test", ":unordered_set_members_test", ":unordered_set_modifiers_test", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -992,8 +992,8 @@ cc_test( ":unordered_map_lookup_test", ":unordered_map_members_test", ":unordered_map_modifiers_test", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1009,8 +1009,8 @@ cc_test( ":flat_hash_set", ":node_hash_map", ":node_hash_set", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1091,8 +1091,8 @@ cc_test( "//absl/strings", "//absl/types:compare", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1121,7 +1121,7 @@ cc_binary( "//absl/strings:cord", "//absl/strings:str_format", "//absl/time", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) diff --git a/absl/crc/BUILD.bazel b/absl/crc/BUILD.bazel index 890d637c5f1..36b606f609f 100644 --- a/absl/crc/BUILD.bazel +++ b/absl/crc/BUILD.bazel @@ -111,8 +111,8 @@ cc_test( ":crc32c", "//absl/strings", "//absl/strings:str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -158,8 +158,8 @@ cc_test( "//absl/random", "//absl/random:distributions", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -171,8 +171,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":non_temporal_memcpy", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -200,8 +200,8 @@ cc_test( deps = [ ":crc32c", ":crc_cord_state", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -219,6 +219,6 @@ cc_binary( ":crc32c", "//absl/memory", "//absl/strings", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) diff --git a/absl/debugging/BUILD.bazel b/absl/debugging/BUILD.bazel index 52b407c0a71..e2e051eb4d0 100644 --- a/absl/debugging/BUILD.bazel +++ b/absl/debugging/BUILD.bazel @@ -67,8 +67,8 @@ cc_test( deps = [ ":stacktrace", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -132,7 +132,7 @@ cc_test( "//absl/log:check", "//absl/memory", "//absl/strings", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -189,7 +189,7 @@ cc_test( "//absl/base:raw_logging_internal", "//absl/log:check", "//absl/strings", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -249,8 +249,8 @@ cc_test( "//absl/base:core_headers", "//absl/log", "//absl/memory", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -273,8 +273,8 @@ cc_test( deps = [ ":bounded_utf8_length_sequence", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -300,8 +300,8 @@ cc_test( deps = [ ":decode_rust_punycode", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -327,8 +327,8 @@ cc_test( ":demangle_rust", "//absl/base:config", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -349,8 +349,8 @@ cc_test( deps = [ ":utf8_for_code_point", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -376,8 +376,8 @@ cc_test( ":leak_check", "//absl/base:config", "//absl/log", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -394,8 +394,8 @@ cc_binary( deps = [ ":leak_check", "//absl/log", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -424,8 +424,8 @@ cc_test( ":stack_consumption", "//absl/base:core_headers", "//absl/log", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -440,6 +440,6 @@ cc_binary( ":stacktrace", "//absl/base:config", "//absl/base:core_headers", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) diff --git a/absl/flags/BUILD.bazel b/absl/flags/BUILD.bazel index af5f8d3ef2a..7730cfa7af3 100644 --- a/absl/flags/BUILD.bazel +++ b/absl/flags/BUILD.bazel @@ -349,8 +349,8 @@ cc_test( ":reflection", "//absl/memory", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -364,8 +364,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -399,8 +399,8 @@ cc_test( "//absl/strings", "//absl/time", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -425,7 +425,7 @@ cc_binary( "//absl/strings", "//absl/time", "//absl/types:optional", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -439,8 +439,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":marshalling", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -470,8 +470,8 @@ cc_test( "//absl/log", "//absl/strings", "//absl/types:span", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -485,8 +485,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":path_util", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -505,8 +505,8 @@ cc_test( deps = [ ":program_name", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -531,8 +531,8 @@ cc_test( ":reflection", "//absl/memory", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -552,8 +552,8 @@ cc_test( "//absl/base", "//absl/container:fixed_array", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -570,8 +570,8 @@ cc_test( ":path_util", ":program_name", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -600,6 +600,6 @@ cc_test( ":usage", ":usage_internal", "//absl/strings", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) diff --git a/absl/functional/BUILD.bazel b/absl/functional/BUILD.bazel index 1a18af25b9e..56380cb0bca 100644 --- a/absl/functional/BUILD.bazel +++ b/absl/functional/BUILD.bazel @@ -62,8 +62,8 @@ cc_test( "//absl/base:core_headers", "//absl/meta:type_traits", "//absl/utility", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -89,8 +89,8 @@ cc_test( deps = [ ":bind_front", "//absl/memory", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -118,8 +118,8 @@ cc_test( ":function_ref", "//absl/container:test_instance_tracker", "//absl/memory", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -145,8 +145,8 @@ cc_test( "//absl/strings", "//absl/strings:string_view", "//absl/types:variant", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -162,7 +162,7 @@ cc_test( ":any_invocable", ":function_ref", "//absl/base:core_headers", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) diff --git a/absl/hash/BUILD.bazel b/absl/hash/BUILD.bazel index fe567e91a48..4e4f0bd20f0 100644 --- a/absl/hash/BUILD.bazel +++ b/absl/hash/BUILD.bazel @@ -69,7 +69,7 @@ cc_library( "//absl/meta:type_traits", "//absl/strings", "//absl/types:variant", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -99,8 +99,8 @@ cc_test( "//absl/strings:string_view", "//absl/types:optional", "//absl/types:variant", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -121,8 +121,8 @@ cc_test( "//absl/container:flat_hash_set", "//absl/container:node_hash_map", "//absl/container:node_hash_set", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -142,7 +142,7 @@ cc_binary( "//absl/strings", "//absl/strings:cord", "//absl/strings:cord_test_helpers", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -182,8 +182,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":city", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -211,7 +211,7 @@ cc_test( deps = [ ":low_level_hash", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/log/BUILD.bazel b/absl/log/BUILD.bazel index f565e2bc4dc..dc9b0b43e86 100644 --- a/absl/log/BUILD.bazel +++ b/absl/log/BUILD.bazel @@ -223,7 +223,7 @@ cc_library( "//absl/base:log_severity", "//absl/base:raw_logging_internal", "//absl/strings", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -281,8 +281,8 @@ cc_test( "//absl/base:log_severity", "//absl/flags:flag", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -303,8 +303,8 @@ cc_test( deps = [ ":absl_check", ":check_test_impl", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -318,8 +318,8 @@ cc_test( deps = [ ":absl_log", ":log_basic_test_impl", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -338,8 +338,8 @@ cc_test( deps = [ ":check", ":check_test_impl", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -362,7 +362,7 @@ cc_library( "//absl/status", "//absl/strings", "//absl/strings:string_view", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -376,8 +376,8 @@ cc_test( ":die_if_null", "//absl/base:core_headers", "//absl/log/internal:test_helpers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -400,8 +400,8 @@ cc_test( "//absl/log/internal:test_helpers", "//absl/log/internal:test_matchers", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -419,8 +419,8 @@ cc_test( "//absl/base:log_severity", "//absl/log/internal:globals", "//absl/log/internal:test_helpers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -434,8 +434,8 @@ cc_test( deps = [ ":log", ":log_basic_test_impl", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -456,7 +456,7 @@ cc_library( "//absl/log/internal:test_actions", "//absl/log/internal:test_helpers", "//absl/log/internal:test_matchers", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -477,8 +477,8 @@ cc_test( "//absl/strings", "//absl/time", "//absl/types:span", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -496,8 +496,8 @@ cc_test( "//absl/strings", "//absl/strings:str_format", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -512,8 +512,8 @@ cc_test( ":scoped_mock_log", "//absl/base:core_headers", "//absl/base:log_severity", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -538,8 +538,8 @@ cc_test( "//absl/log/internal:test_helpers", "//absl/log/internal:test_matchers", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -560,8 +560,8 @@ cc_test( "//absl/log/internal:test_helpers", "//absl/log/internal:test_matchers", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -580,8 +580,8 @@ cc_test( "//absl/log/internal:test_matchers", "//absl/strings", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -608,8 +608,8 @@ cc_test( "//absl/memory", "//absl/strings", "//absl/synchronization", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -632,8 +632,8 @@ cc_test( "//absl/status", "//absl/strings", "//absl/strings:str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -650,8 +650,8 @@ cc_test( "//absl/base:core_headers", "//absl/log/internal:test_helpers", "//absl/log/internal:test_matchers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -675,6 +675,6 @@ cc_test( "//absl/base:log_severity", "//absl/flags:flag", "//absl/log/internal:flags", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) diff --git a/absl/log/internal/BUILD.bazel b/absl/log/internal/BUILD.bazel index 365da3d0c20..dd5a0dc19bd 100644 --- a/absl/log/internal/BUILD.bazel +++ b/absl/log/internal/BUILD.bazel @@ -322,7 +322,7 @@ cc_library( "//absl/base:log_severity", "//absl/log:globals", "//absl/log:initialize", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -341,7 +341,7 @@ cc_library( "//absl/log:log_entry", "//absl/strings", "//absl/time", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ] + select({ "//absl:msvc_compiler": [], "//conditions:default": [ @@ -424,7 +424,7 @@ cc_binary( "//absl/memory", "//absl/random:distributions", "//absl/strings", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -452,8 +452,8 @@ cc_test( "//absl/base:log_severity", "//absl/log", "//absl/log:globals", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -464,8 +464,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":fnmatch", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -477,6 +477,6 @@ cc_test( tags = ["benchmark"], deps = [ ":fnmatch", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) diff --git a/absl/memory/BUILD.bazel b/absl/memory/BUILD.bazel index 4573f17d26e..d50a502e70b 100644 --- a/absl/memory/BUILD.bazel +++ b/absl/memory/BUILD.bazel @@ -54,7 +54,7 @@ cc_test( deps = [ ":memory", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/meta/BUILD.bazel b/absl/meta/BUILD.bazel index cf5df9b88eb..d01cb8a2171 100644 --- a/absl/meta/BUILD.bazel +++ b/absl/meta/BUILD.bazel @@ -53,7 +53,7 @@ cc_test( "//absl/base:config", "//absl/base:core_headers", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/numeric/BUILD.bazel b/absl/numeric/BUILD.bazel index f202c6e06fd..7b92eed5830 100644 --- a/absl/numeric/BUILD.bazel +++ b/absl/numeric/BUILD.bazel @@ -54,8 +54,8 @@ cc_binary( ":bits", "//absl/base:core_headers", "//absl/random", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -70,8 +70,8 @@ cc_test( deps = [ ":bits", "//absl/random", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -109,8 +109,8 @@ cc_test( "//absl/meta:type_traits", "//absl/strings", "//absl/types:compare", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -123,8 +123,8 @@ cc_test( deps = [ ":int128", "//absl/base:config", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) diff --git a/absl/profiling/BUILD.bazel b/absl/profiling/BUILD.bazel index abe127ecdc9..c5e3b005936 100644 --- a/absl/profiling/BUILD.bazel +++ b/absl/profiling/BUILD.bazel @@ -59,8 +59,8 @@ cc_test( "//absl/synchronization", "//absl/synchronization:thread_pool", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -88,8 +88,8 @@ cc_test( deps = [ ":exponential_biased", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -119,8 +119,8 @@ cc_test( deps = [ ":periodic_sampler", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -135,6 +135,6 @@ cc_binary( deps = [ ":periodic_sampler", "//absl/base:core_headers", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) diff --git a/absl/random/BUILD.bazel b/absl/random/BUILD.bazel index a359e1b9819..742ab76e6a8 100644 --- a/absl/random/BUILD.bazel +++ b/absl/random/BUILD.bazel @@ -161,7 +161,7 @@ cc_library( "//absl/meta:type_traits", "//absl/random/internal:mock_helpers", "//absl/utility", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -177,8 +177,8 @@ cc_test( ":random", "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -203,8 +203,8 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -223,8 +223,8 @@ cc_test( "//absl/meta:type_traits", "//absl/numeric:int128", "//absl/random/internal:distribution_test_util", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -237,8 +237,8 @@ cc_test( deps = [ ":distributions", ":random", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -262,8 +262,8 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -283,8 +283,8 @@ cc_test( "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -313,8 +313,8 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -336,8 +336,8 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -360,8 +360,8 @@ cc_test( "//absl/random/internal:sequence_urbg", "//absl/strings", "//absl/strings:str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -382,8 +382,8 @@ cc_test( "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -409,8 +409,8 @@ cc_test( "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -430,8 +430,8 @@ cc_test( "//absl/random/internal:pcg_engine", "//absl/random/internal:sequence_urbg", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -446,8 +446,8 @@ cc_test( ":random", "//absl/base:fast_type_id", "//absl/random/internal:sequence_urbg", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -465,8 +465,8 @@ cc_test( ":mock_distributions", ":mocking_bit_gen", ":random", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -486,8 +486,8 @@ cc_test( ":mocking_bit_gen", ":random", "//absl/numeric:int128", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -502,8 +502,8 @@ cc_test( ], deps = [ ":random", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -517,8 +517,8 @@ cc_test( ":random", ":seed_sequences", "//absl/random/internal:nonsecure_base", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -540,6 +540,6 @@ cc_binary( "//absl/meta:type_traits", "//absl/random/internal:fast_uniform_bits", "//absl/random/internal:randen_engine", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) diff --git a/absl/random/internal/BUILD.bazel b/absl/random/internal/BUILD.bazel index cf4b8f34f2c..250eff09eaa 100644 --- a/absl/random/internal/BUILD.bazel +++ b/absl/random/internal/BUILD.bazel @@ -417,8 +417,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":traits", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -434,8 +434,8 @@ cc_test( ":generate_real", "//absl/flags:flag", "//absl/numeric:bits", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -447,8 +447,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":distribution_test_util", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -460,8 +460,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":fastmath", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -474,8 +474,8 @@ cc_test( deps = [ ":explicit_seed_seq", "//absl/random:seed_sequences", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -487,8 +487,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":salted_seed_seq", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -503,8 +503,8 @@ cc_test( deps = [ ":distribution_test_util", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -518,8 +518,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":fast_uniform_bits", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -543,7 +543,7 @@ cc_library( ":mock_helpers", "//absl/base:config", "//absl/random:mocking_bit_gen", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -561,8 +561,8 @@ cc_test( "//absl/random:distributions", "//absl/random:seed_sequences", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -574,8 +574,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":seed_material", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -591,8 +591,8 @@ cc_test( ":pool_urbg", "//absl/meta:type_traits", "//absl/types:span", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -607,8 +607,8 @@ cc_test( ":explicit_seed_seq", ":pcg_engine", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -626,8 +626,8 @@ cc_test( "//absl/log", "//absl/strings", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -640,8 +640,8 @@ cc_test( deps = [ ":randen", "//absl/meta:type_traits", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -655,8 +655,8 @@ cc_test( ":platform", ":randen_slow", "//absl/base:endian", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -673,7 +673,7 @@ cc_test( ":randen_hwaes_impl", # build_cleaner: keep "//absl/log", "//absl/strings:str_format", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -687,8 +687,8 @@ cc_test( ":wide_multiply", "//absl/numeric:bits", "//absl/numeric:int128", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -780,8 +780,8 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":iostream_state_saver", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -793,7 +793,7 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":uniform_helper", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/status/BUILD.bazel b/absl/status/BUILD.bazel index db995484ff3..b0eb27ab298 100644 --- a/absl/status/BUILD.bazel +++ b/absl/status/BUILD.bazel @@ -81,8 +81,8 @@ cc_test( "//absl/strings", "//absl/strings:cord", "//absl/strings:str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -127,8 +127,8 @@ cc_test( "//absl/types:any", "//absl/types:variant", "//absl/utility", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -147,7 +147,7 @@ cc_library( ":statusor", "//absl/base:config", "//absl/strings:string_view", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -162,7 +162,7 @@ cc_test( ":status_matchers", ":statusor", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/strings/BUILD.bazel b/absl/strings/BUILD.bazel index 1b5fbea671c..dd2cf05ae81 100644 --- a/absl/strings/BUILD.bazel +++ b/absl/strings/BUILD.bazel @@ -146,8 +146,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -166,8 +166,8 @@ cc_test( "//absl/base:core_headers", "//absl/container:fixed_array", "//absl/log:check", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -183,8 +183,8 @@ cc_test( deps = [ ":strings", "//absl/base:raw_logging_internal", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -197,8 +197,8 @@ cc_test( deps = [ ":strings", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -221,8 +221,8 @@ cc_test( deps = [ ":has_ostream_operator", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -235,8 +235,8 @@ cc_test( deps = [ ":strings", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -248,8 +248,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":strings", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -262,8 +262,8 @@ cc_test( copts = ABSL_TEST_COPTS, deps = [ "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -279,8 +279,8 @@ cc_test( deps = [ ":strings", "//absl/base:core_headers", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -296,8 +296,8 @@ cc_test( deps = [ ":strings", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -312,8 +312,8 @@ cc_test( deps = [ ":internal", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -326,8 +326,8 @@ cc_test( deps = [ ":strings", "//absl/meta:type_traits", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -342,8 +342,8 @@ cc_test( ":strings", "//absl/base:core_headers", "//absl/base:raw_logging_internal", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -359,8 +359,8 @@ cc_test( "//absl/base:core_headers", "//absl/base:dynamic_annotations", "//absl/meta:type_traits", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -378,8 +378,8 @@ cc_test( deps = [ ":charset", "//absl/log:check", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -405,8 +405,8 @@ cc_test( deps = [ ":charset", ":strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -465,8 +465,8 @@ cc_test( ":cord_rep_test_util", ":strings", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -484,8 +484,8 @@ cc_test( "//absl/base:config", "//absl/base:raw_logging_internal", "//absl/cleanup", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -501,8 +501,8 @@ cc_test( ":strings", "//absl/base:config", "//absl/base:raw_logging_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -519,8 +519,8 @@ cc_test( ":strings", "//absl/base:config", "//absl/base:raw_logging_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -535,8 +535,8 @@ cc_test( ":cord_rep_test_util", "//absl/base:config", "//absl/crc:crc_cord_state", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -559,8 +559,8 @@ cc_test( "//absl/base:config", "//absl/base:core_headers", "//absl/synchronization", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -677,8 +677,8 @@ cc_test( ":cordz_update_scope", ":cordz_update_tracker", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -738,8 +738,8 @@ cc_test( ":cordz_functions", ":cordz_test_helpers", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -757,8 +757,8 @@ cc_test( "//absl/synchronization", "//absl/synchronization:thread_pool", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -779,8 +779,8 @@ cc_test( "//absl/debugging:stacktrace", "//absl/debugging:symbolize", "//absl/types:span", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -801,8 +801,8 @@ cc_test( "//absl/crc:crc_cord_state", "//absl/synchronization", "//absl/synchronization:thread_pool", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -823,8 +823,8 @@ cc_test( "//absl/synchronization", "//absl/synchronization:thread_pool", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -875,7 +875,7 @@ cc_library( "//absl/base:config", "//absl/base:core_headers", "//absl/base:nullability", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], ) @@ -892,8 +892,8 @@ cc_test( ":string_view", "//absl/base:config", "//absl/types:span", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -927,8 +927,8 @@ cc_test( "//absl/random", "//absl/types:compare", "//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -961,8 +961,8 @@ cc_test( "//absl/base:config", "//absl/base:core_headers", "//absl/base:raw_logging_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -975,8 +975,8 @@ cc_test( deps = [ ":strings", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -989,8 +989,8 @@ cc_test( deps = [ ":strings", "//absl/base:raw_logging_internal", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -1002,8 +1002,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1019,8 +1019,8 @@ cc_test( "//absl/container:btree", "//absl/container:flat_hash_map", "//absl/container:node_hash_map", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1033,8 +1033,8 @@ cc_test( deps = [ ":strings", "//absl/base:raw_logging_internal", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -1046,8 +1046,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1059,8 +1059,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":internal", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -1076,8 +1076,8 @@ cc_test( deps = [ "//absl/base:core_headers", "//absl/meta:type_traits", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1091,8 +1091,8 @@ cc_test( ":strings", "//absl/base:core_headers", "//absl/memory", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1104,8 +1104,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":strings", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -1119,8 +1119,8 @@ cc_test( ":str_format", ":strings", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1134,8 +1134,8 @@ cc_test( ":strings", "//absl/random", "//absl/random:distributions", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -1157,8 +1157,8 @@ cc_test( "//absl/numeric:int128", "//absl/random", "//absl/random:distributions", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1173,8 +1173,8 @@ cc_test( "//absl/base:raw_logging_internal", "//absl/random", "//absl/random:distributions", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -1186,8 +1186,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1199,8 +1199,8 @@ cc_test( ":pow10_helper", ":str_format", ":strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1215,8 +1215,8 @@ cc_test( ":strings", "//absl/base:config", "//absl/log:check", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1231,8 +1231,8 @@ cc_test( deps = [ ":strings", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1246,8 +1246,8 @@ cc_test( ], deps = [ ":strings", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -1320,8 +1320,8 @@ cc_test( "//absl/base:config", "//absl/base:core_headers", "//absl/types:span", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1336,8 +1336,8 @@ cc_test( ":str_format", ":str_format_internal", ":strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1350,8 +1350,8 @@ cc_test( ":str_format", ":str_format_internal", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1362,8 +1362,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":str_format_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1374,8 +1374,8 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1397,8 +1397,8 @@ cc_test( "//absl/numeric:int128", "//absl/types:optional", "//absl/types:span", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1410,8 +1410,8 @@ cc_test( deps = [ ":cord", ":str_format_internal", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1425,8 +1425,8 @@ cc_test( ":string_view", "//absl/base:config", "//absl/base:core_headers", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1448,8 +1448,8 @@ cc_test( deps = [ ":pow10_helper", ":str_format", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -1476,7 +1476,7 @@ cc_test( deps = [ ":str_format", ":strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/synchronization/BUILD.bazel b/absl/synchronization/BUILD.bazel index 46a23f3bb2a..94ca7412ed6 100644 --- a/absl/synchronization/BUILD.bazel +++ b/absl/synchronization/BUILD.bazel @@ -85,8 +85,8 @@ cc_test( "//absl/base:config", "//absl/random", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -162,8 +162,8 @@ cc_test( deps = [ ":synchronization", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -182,8 +182,8 @@ cc_test( "//absl/base:core_headers", "//absl/base:tracing_internal", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -198,7 +198,7 @@ cc_binary( ":synchronization", ":thread_pool", "//absl/base:no_destructor", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) @@ -213,8 +213,8 @@ cc_test( "//absl/base:core_headers", "//absl/log", "//absl/log:check", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -229,8 +229,8 @@ cc_test( deps = [ ":graphcycles_internal", "//absl/base:raw_logging_internal", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -267,8 +267,8 @@ cc_test( "//absl/log:check", "//absl/memory", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -280,8 +280,8 @@ cc_test( deps = [ ":synchronization", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -299,7 +299,7 @@ cc_library( "//absl/base", "//absl/base:config", "//absl/base:no_destructor", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], alwayslink = 1, ) @@ -328,8 +328,8 @@ cc_test( "//absl/base:core_headers", "//absl/base:tracing_internal", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -347,7 +347,7 @@ cc_library( "//absl/base:config", "//absl/strings", "//absl/time", - "@com_google_googletest//:gtest", + "@googletest//:gtest", ], alwayslink = 1, ) @@ -365,7 +365,7 @@ cc_test( ":synchronization", "//absl/strings", "//absl/time", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest_main", ], ) @@ -382,8 +382,8 @@ cc_test( "//absl/base:config", "//absl/random", "//absl/time", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/time/BUILD.bazel b/absl/time/BUILD.bazel index 05f1f2f2da2..474c18f7b8b 100644 --- a/absl/time/BUILD.bazel +++ b/absl/time/BUILD.bazel @@ -90,7 +90,6 @@ cc_test( ], copts = ABSL_TEST_COPTS, data = ["//absl/time/internal/cctz:zoneinfo"], - env = {"TZDIR": "absl/time/internal/cctz/testdata/zoneinfo"}, linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":test_util", @@ -100,8 +99,8 @@ cc_test( "//absl/numeric:int128", "//absl/strings:str_format", "//absl/time/internal/cctz:time_zone", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -125,8 +124,8 @@ cc_test( ":time", "//absl/flags:flag", "//absl/flags:reflection", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -141,7 +140,6 @@ cc_test( ], copts = ABSL_TEST_COPTS, data = ["//absl/time/internal/cctz:zoneinfo"], - env = {"TZDIR": "absl/time/internal/cctz/testdata/zoneinfo"}, linkopts = ABSL_DEFAULT_LINKOPTS, tags = [ "benchmark", @@ -153,6 +151,6 @@ cc_test( "//absl/base:core_headers", "//absl/flags:flag", "//absl/hash", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) diff --git a/absl/time/internal/cctz/BUILD.bazel b/absl/time/internal/cctz/BUILD.bazel index fce71f385e1..a2d9c336dcd 100644 --- a/absl/time/internal/cctz/BUILD.bazel +++ b/absl/time/internal/cctz/BUILD.bazel @@ -87,8 +87,8 @@ cc_test( deps = [ ":civil_time", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -97,7 +97,6 @@ cc_test( size = "small", srcs = ["src/time_zone_format_test.cc"], data = [":zoneinfo"], - env = {"TZDIR": "absl/time/internal/cctz/testdata/zoneinfo"}, tags = [ "no_test_android_arm", "no_test_android_arm64", @@ -108,8 +107,8 @@ cc_test( ":civil_time", ":time_zone", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -119,7 +118,6 @@ cc_test( timeout = "moderate", srcs = ["src/time_zone_lookup_test.cc"], data = [":zoneinfo"], - env = {"TZDIR": "absl/time/internal/cctz/testdata/zoneinfo"}, tags = [ "no_test_android_arm", "no_test_android_arm64", @@ -130,8 +128,8 @@ cc_test( ":civil_time", ":time_zone", "//absl/base:config", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -152,7 +150,7 @@ cc_test( ":civil_time", ":time_zone", "//absl/base:config", - "@com_github_google_benchmark//:benchmark_main", + "@google_benchmark//:benchmark_main", ], ) diff --git a/absl/types/BUILD.bazel b/absl/types/BUILD.bazel index 0ca42f0c525..532afa65d94 100644 --- a/absl/types/BUILD.bazel +++ b/absl/types/BUILD.bazel @@ -86,8 +86,8 @@ cc_test( "//absl/base:exception_testing", "//absl/container:test_instance_tracker", "//absl/log", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -100,8 +100,8 @@ cc_test( ":any", "//absl/base:config", "//absl/base:exception_safety_testing", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -141,8 +141,8 @@ cc_test( "//absl/hash:hash_testing", "//absl/meta:type_traits", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -202,8 +202,8 @@ cc_test( "//absl/log", "//absl/meta:type_traits", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -218,8 +218,8 @@ cc_test( ":optional", "//absl/base:config", "//absl/base:exception_safety_testing", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -252,8 +252,8 @@ cc_test( "//absl/memory", "//absl/meta:type_traits", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -268,8 +268,8 @@ cc_test( deps = [ ":variant", "//absl/utility", - "@com_github_google_benchmark//:benchmark_main", - "@com_google_googletest//:gtest", + "@google_benchmark//:benchmark_main", + "@googletest//:gtest", ], ) @@ -286,8 +286,8 @@ cc_test( "//absl/base:config", "//absl/base:exception_safety_testing", "//absl/memory", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -313,7 +313,7 @@ cc_test( deps = [ ":compare", "//absl/base", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/absl/utility/BUILD.bazel b/absl/utility/BUILD.bazel index 1c01fc12b7c..0b6ce3b24e5 100644 --- a/absl/utility/BUILD.bazel +++ b/absl/utility/BUILD.bazel @@ -56,8 +56,8 @@ cc_test( "//absl/base:core_headers", "//absl/memory", "//absl/strings", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) @@ -80,7 +80,7 @@ cc_test( linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":if_constexpr", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@googletest//:gtest", + "@googletest//:gtest_main", ], ) diff --git a/ci/linux_docker_containers.sh b/ci/linux_docker_containers.sh index fefef928285..cb4893a2f76 100644 --- a/ci/linux_docker_containers.sh +++ b/ci/linux_docker_containers.sh @@ -16,7 +16,7 @@ # Test scripts should source this file to get the identifiers. readonly LINUX_ALPINE_CONTAINER="gcr.io/google.com/absl-177019/alpine:20230612" -readonly LINUX_CLANG_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_hybrid-latest:20240523" +readonly LINUX_CLANG_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_hybrid-latest:20241218" readonly LINUX_ARM_CLANG_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_arm_hybrid-latest:20231219" -readonly LINUX_GCC_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_hybrid-latest:20240523" -readonly LINUX_GCC_FLOOR_CONTAINER="gcr.io/google.com/absl-177019/linux_gcc-floor:20240717" +readonly LINUX_GCC_LATEST_CONTAINER="gcr.io/google.com/absl-177019/linux_hybrid-latest:20241218" +readonly LINUX_GCC_FLOOR_CONTAINER="gcr.io/google.com/absl-177019/linux_gcc-floor:20241218" diff --git a/ci/linux_gcc-floor_libstdcxx_bazel.sh b/ci/linux_gcc-floor_libstdcxx_bazel.sh index b2d8c1dad62..ef1bb54d7f4 100755 --- a/ci/linux_gcc-floor_libstdcxx_bazel.sh +++ b/ci/linux_gcc-floor_libstdcxx_bazel.sh @@ -78,7 +78,6 @@ for std in ${STD}; do --copt="-DGTEST_REMOVE_LEGACY_TEST_CASEAPI_=1" \ --copt=-Werror \ --define="absl=1" \ - --distdir="/bazel-distdir" \ --enable_bzlmod=false \ --features=external_include_paths \ --keep_going \ diff --git a/ci/macos_xcode_bazel.sh b/ci/macos_xcode_bazel.sh index 32a8829e4ca..fe4e2eb7e7d 100755 --- a/ci/macos_xcode_bazel.sh +++ b/ci/macos_xcode_bazel.sh @@ -24,7 +24,7 @@ if [[ -z ${ABSEIL_ROOT:-} ]]; then fi # If we are running on Kokoro, check for a versioned Bazel binary. -KOKORO_GFILE_BAZEL_BIN="bazel-7.0.0-darwin-x86_64" +KOKORO_GFILE_BAZEL_BIN="bazel-8.0.0-darwin-x86_64" if [[ ${KOKORO_GFILE_DIR:-} ]] && [[ -f ${KOKORO_GFILE_DIR}/${KOKORO_GFILE_BAZEL_BIN} ]]; then BAZEL_BIN="${KOKORO_GFILE_DIR}/${KOKORO_GFILE_BAZEL_BIN}" chmod +x ${BAZEL_BIN} diff --git a/ci/windows_clangcl_bazel.bat b/ci/windows_clangcl_bazel.bat index b031c30da84..93ac028048d 100755 --- a/ci/windows_clangcl_bazel.bat +++ b/ci/windows_clangcl_bazel.bat @@ -39,7 +39,7 @@ IF NOT "%ALTERNATE_OPTIONS%"=="" copy %ALTERNATE_OPTIONS% absl\base\options.h :: /google/data/rw/teams/absl/kokoro/windows. :: :: TODO(absl-team): Remove -Wno-microsoft-cast -%KOKORO_GFILE_DIR%\bazel-7.0.0-windows-x86_64.exe ^ +%KOKORO_GFILE_DIR%\bazel-8.0.0-windows-x86_64.exe ^ test ... ^ --compilation_mode=%COMPILATION_MODE% ^ --compiler=clang-cl ^ diff --git a/ci/windows_msvc_bazel.bat b/ci/windows_msvc_bazel.bat index e2acf5fdf2f..78ce28fcf53 100755 --- a/ci/windows_msvc_bazel.bat +++ b/ci/windows_msvc_bazel.bat @@ -34,7 +34,7 @@ IF NOT "%ALTERNATE_OPTIONS%"=="" copy %ALTERNATE_OPTIONS% absl\base\options.h :: To upgrade Bazel, first download a new binary from :: https://github.com/bazelbuild/bazel/releases and copy it to :: /google/data/rw/teams/absl/kokoro/windows. -%KOKORO_GFILE_DIR%\bazel-7.0.0-windows-x86_64.exe ^ +%KOKORO_GFILE_DIR%\bazel-8.0.0-windows-x86_64.exe ^ test ... ^ --compilation_mode=%COMPILATION_MODE% ^ --copt=/WX ^