summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2023-10-10 13:29:16 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-10-10 13:30:24 -0700
commit143e983739333ce4b30320d26bce8594bd24b5f3 (patch)
tree84515b81a55d409a170ef99683b4c08766829e6a
parent5dc0e78af1c2781644a350d36ae37f0c21e579fe (diff)
Bazel: Support layering_check and parse_headers
The layering_check feature ensures that rules that include a header explicitly depend on a rule that exports that header. Compiler support is required, and currently only Clang 16+ supports diagnoses layering_check failures. The parse_headers feature ensures headers are self-contained by compiling them with -fsyntax-only on supported compilers. PiperOrigin-RevId: 572350144 Change-Id: I37297f761566d686d9dd58d318979d688b7e36d1
-rw-r--r--absl/algorithm/BUILD.bazel10
-rw-r--r--absl/base/BUILD.bazel31
-rw-r--r--absl/cleanup/BUILD.bazel9
-rw-r--r--absl/container/BUILD.bazel33
-rw-r--r--absl/crc/BUILD.bazel12
-rw-r--r--absl/debugging/BUILD.bazel10
-rw-r--r--absl/flags/BUILD.bazel18
-rw-r--r--absl/functional/BUILD.bazel13
-rw-r--r--absl/hash/BUILD.bazel12
-rw-r--r--absl/log/BUILD.bazel24
-rw-r--r--absl/log/internal/BUILD.bazel14
-rw-r--r--absl/memory/BUILD.bazel9
-rw-r--r--absl/meta/BUILD.bazel9
-rw-r--r--absl/numeric/BUILD.bazel12
-rw-r--r--absl/profiling/BUILD.bazel11
-rw-r--r--absl/random/BUILD.bazel25
-rw-r--r--absl/random/internal/BUILD.bazel26
-rw-r--r--absl/status/BUILD.bazel10
-rw-r--r--absl/strings/BUILD.bazel64
-rw-r--r--absl/synchronization/BUILD.bazel17
-rw-r--r--absl/time/BUILD.bazel10
-rw-r--r--absl/types/BUILD.bazel17
-rw-r--r--absl/utility/BUILD.bazel10
23 files changed, 382 insertions, 24 deletions
diff --git a/absl/algorithm/BUILD.bazel b/absl/algorithm/BUILD.bazel
index 3a9ab013..6a657a61 100644
--- a/absl/algorithm/BUILD.bazel
+++ b/absl/algorithm/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -44,6 +50,7 @@ cc_test(
deps = [
":algorithm",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -87,6 +94,7 @@ cc_test(
"//absl/base:core_headers",
"//absl/memory",
"//absl/types:span",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/base/BUILD.bazel b/absl/base/BUILD.bazel
index a1418553..eeec68a2 100644
--- a/absl/base/BUILD.bazel
+++ b/absl/base/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -301,6 +307,7 @@ cc_test(
":atomic_hook",
":atomic_hook_test_helper",
":core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -316,6 +323,7 @@ cc_test(
deps = [
":base",
":core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -343,6 +351,7 @@ cc_test(
deps = [
":config",
":throw_delegate",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -356,6 +365,7 @@ cc_test(
deps = [
":errno_saver",
":strerror",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -410,6 +420,7 @@ cc_test(
deps = [
":exception_safety_testing",
"//absl/memory",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -427,6 +438,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":base_internal",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -441,6 +453,7 @@ cc_test(
":base_internal",
"//absl/memory",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -479,6 +492,7 @@ cc_test(
":config",
":core_headers",
"//absl/synchronization",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -536,6 +550,7 @@ cc_test(
deps = [
":config",
":endian",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -548,6 +563,7 @@ cc_test(
deps = [
":config",
"//absl/synchronization:thread_pool",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -561,6 +577,7 @@ cc_test(
":base",
":core_headers",
"//absl/synchronization",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -571,6 +588,7 @@ cc_test(
deps = [
":core_headers",
":nullability",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -583,6 +601,7 @@ cc_test(
deps = [
":raw_logging_internal",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -596,6 +615,7 @@ cc_test(
deps = [
":base",
"//absl/synchronization",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -629,6 +649,7 @@ cc_test(
":base",
":core_headers",
"//absl/synchronization",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -644,6 +665,7 @@ cc_test(
":base",
"//absl/synchronization",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -670,6 +692,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":scoped_set_env",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -685,6 +708,7 @@ cc_test(
"//absl/flags:flag_internal",
"//absl/flags:marshalling",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -714,6 +738,7 @@ cc_test(
deps = [
":strerror",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -753,6 +778,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":fast_type_id",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -780,6 +806,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":prefetch",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -794,6 +821,7 @@ cc_test(
deps = [
":core_headers",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -807,6 +835,7 @@ cc_test(
deps = [
":core_headers",
"//absl/types:optional",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/cleanup/BUILD.bazel b/absl/cleanup/BUILD.bazel
index 2154d9f1..e3b40414 100644
--- a/absl/cleanup/BUILD.bazel
+++ b/absl/cleanup/BUILD.bazel
@@ -19,7 +19,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -60,6 +66,7 @@ cc_test(
":cleanup",
"//absl/base:config",
"//absl/utility",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/container/BUILD.bazel b/absl/container/BUILD.bazel
index 994ec067..6534e368 100644
--- a/absl/container/BUILD.bazel
+++ b/absl/container/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -47,6 +53,7 @@ cc_test(
"//absl/types:any",
"//absl/types:optional",
"//absl/utility",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -79,6 +86,7 @@ cc_test(
"//absl/base:exception_testing",
"//absl/hash:hash_testing",
"//absl/memory",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -92,6 +100,7 @@ cc_test(
":fixed_array",
"//absl/base:config",
"//absl/base:exception_safety_testing",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -163,6 +172,7 @@ cc_test(
"//absl/log:check",
"//absl/memory",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -191,6 +201,7 @@ cc_test(
":inlined_vector",
"//absl/base:config",
"//absl/base:exception_safety_testing",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -215,6 +226,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":test_instance_tracker",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -256,6 +268,7 @@ cc_test(
":unordered_map_modifiers_test",
"//absl/log:check",
"//absl/types:any",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -293,6 +306,7 @@ cc_test(
"//absl/log:check",
"//absl/memory",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -327,6 +341,7 @@ cc_test(
":unordered_map_lookup_test",
":unordered_map_members_test",
":unordered_map_modifiers_test",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -358,6 +373,7 @@ cc_test(
":unordered_set_lookup_test",
":unordered_set_members_test",
":unordered_set_modifiers_test",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -385,6 +401,7 @@ cc_test(
":container_memory",
":test_instance_tracker",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -418,6 +435,7 @@ cc_test(
"//absl/strings",
"//absl/strings:cord",
"//absl/strings:cord_test_helpers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -456,6 +474,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":hash_policy_testing",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -478,6 +497,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":hash_policy_traits",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -499,6 +519,7 @@ cc_test(
deps = [
":common_policy_traits",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -562,6 +583,7 @@ cc_test(
"//absl/synchronization",
"//absl/synchronization:thread_pool",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -583,6 +605,7 @@ cc_test(
":hash_policy_traits",
":node_slot_policy",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -662,6 +685,7 @@ cc_test(
"//absl/base:prefetch",
"//absl/log",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -715,6 +739,7 @@ cc_test(
":raw_hash_set",
":tracked",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -749,6 +774,7 @@ cc_test(
"//absl/log:check",
"//absl/types:span",
"//absl/utility",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -894,6 +920,7 @@ cc_test(
":unordered_set_lookup_test",
":unordered_set_members_test",
":unordered_set_modifiers_test",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -909,6 +936,7 @@ cc_test(
":unordered_map_lookup_test",
":unordered_map_members_test",
":unordered_map_modifiers_test",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -925,6 +953,7 @@ cc_test(
":flat_hash_set",
":node_hash_map",
":node_hash_set",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1006,6 +1035,7 @@ cc_test(
"//absl/strings",
"//absl/types:compare",
"//absl/types:optional",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1036,5 +1066,6 @@ cc_binary(
"//absl/strings:str_format",
"//absl/time",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
diff --git a/absl/crc/BUILD.bazel b/absl/crc/BUILD.bazel
index 5580420a..5abd41e8 100644
--- a/absl/crc/BUILD.bazel
+++ b/absl/crc/BUILD.bazel
@@ -19,7 +19,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:private"])
+package(
+ default_visibility = ["//visibility:private"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -104,6 +110,7 @@ cc_test(
":crc32c",
"//absl/strings",
"//absl/strings:str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -146,6 +153,7 @@ cc_test(
"//absl/random",
"//absl/random:distributions",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -158,6 +166,7 @@ cc_test(
visibility = ["//visibility:private"],
deps = [
":non_temporal_memcpy",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -186,6 +195,7 @@ cc_test(
deps = [
":crc32c",
":crc_cord_state",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/debugging/BUILD.bazel b/absl/debugging/BUILD.bazel
index f50c73f3..5baff7a1 100644
--- a/absl/debugging/BUILD.bazel
+++ b/absl/debugging/BUILD.bazel
@@ -23,6 +23,11 @@ load(
package(
default_visibility = ["//visibility:public"],
+ features = [
+ "header_modules",
+ "layering_check",
+ "parse_headers",
+ ],
)
licenses(["notice"])
@@ -62,6 +67,7 @@ cc_test(
deps = [
":stacktrace",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -240,6 +246,7 @@ cc_test(
"//absl/base:core_headers",
"//absl/log",
"//absl/memory",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -266,6 +273,7 @@ cc_test(
":leak_check",
"//absl/base:config",
"//absl/log",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -283,6 +291,7 @@ cc_binary(
deps = [
":leak_check",
"//absl/log",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -312,6 +321,7 @@ cc_test(
":stack_consumption",
"//absl/base:core_headers",
"//absl/log",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/flags/BUILD.bazel b/absl/flags/BUILD.bazel
index 65577a9b..c21fd258 100644
--- a/absl/flags/BUILD.bazel
+++ b/absl/flags/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -346,6 +352,7 @@ cc_test(
":reflection",
"//absl/memory",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -360,6 +367,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -391,6 +399,7 @@ cc_test(
"//absl/numeric:int128",
"//absl/strings",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -430,6 +439,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":marshalling",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -458,6 +468,7 @@ cc_test(
"//absl/log",
"//absl/strings",
"//absl/types:span",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -472,6 +483,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":path_util",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -488,6 +500,7 @@ cc_test(
deps = [
":program_name",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -515,6 +528,7 @@ cc_test(
":usage_internal",
"//absl/memory",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -535,6 +549,7 @@ cc_test(
"//absl/base",
"//absl/container:fixed_array",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -552,6 +567,7 @@ cc_test(
":path_util",
":program_name",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/functional/BUILD.bazel b/absl/functional/BUILD.bazel
index 28718257..8d2f0dbd 100644
--- a/absl/functional/BUILD.bazel
+++ b/absl/functional/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -55,6 +61,7 @@ cc_test(
"//absl/base:core_headers",
"//absl/meta:type_traits",
"//absl/utility",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -81,6 +88,7 @@ cc_test(
deps = [
":bind_front",
"//absl/memory",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -109,6 +117,7 @@ cc_test(
":function_ref",
"//absl/container:test_instance_tracker",
"//absl/memory",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -135,6 +144,7 @@ cc_test(
"//absl/strings",
"//absl/strings:string_view",
"//absl/types:variant",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -152,5 +162,6 @@ cc_test(
":function_ref",
"//absl/base:core_headers",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
diff --git a/absl/hash/BUILD.bazel b/absl/hash/BUILD.bazel
index a520ae62..bc938b4f 100644
--- a/absl/hash/BUILD.bazel
+++ b/absl/hash/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -92,6 +98,7 @@ cc_test(
"//absl/strings:string_view",
"//absl/types:optional",
"//absl/types:variant",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -113,6 +120,7 @@ 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",
],
)
@@ -173,6 +181,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":city",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -201,6 +210,7 @@ cc_test(
deps = [
":low_level_hash",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/log/BUILD.bazel b/absl/log/BUILD.bazel
index 2f393554..630cc669 100644
--- a/absl/log/BUILD.bazel
+++ b/absl/log/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -244,6 +250,7 @@ cc_test(
deps = [
":absl_check",
":check_test_impl",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -257,6 +264,7 @@ cc_test(
deps = [
":absl_log",
":log_basic_test_impl",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -275,6 +283,7 @@ cc_test(
deps = [
":check",
":check_test_impl",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -310,6 +319,7 @@ cc_test(
":die_if_null",
"//absl/base:core_headers",
"//absl/log/internal:test_helpers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -333,6 +343,7 @@ cc_test(
"//absl/log/internal:test_helpers",
"//absl/log/internal:test_matchers",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -351,6 +362,7 @@ cc_test(
"//absl/base:log_severity",
"//absl/log/internal:globals",
"//absl/log/internal:test_helpers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -364,6 +376,7 @@ cc_test(
deps = [
":log",
":log_basic_test_impl",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -405,6 +418,7 @@ cc_test(
"//absl/strings",
"//absl/time",
"//absl/types:span",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -423,6 +437,7 @@ cc_test(
"//absl/strings",
"//absl/strings:str_format",
"//absl/types:optional",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -438,6 +453,7 @@ cc_test(
":scoped_mock_log",
"//absl/base:core_headers",
"//absl/base:log_severity",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -463,6 +479,7 @@ cc_test(
"//absl/log/internal:test_helpers",
"//absl/log/internal:test_matchers",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -484,6 +501,7 @@ cc_test(
"//absl/log/internal:test_helpers",
"//absl/log/internal:test_matchers",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -503,6 +521,7 @@ cc_test(
"//absl/log/internal:test_matchers",
"//absl/strings",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -530,6 +549,7 @@ cc_test(
"//absl/memory",
"//absl/strings",
"//absl/synchronization",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -552,6 +572,7 @@ cc_test(
"//absl/log/internal:test_helpers",
"//absl/strings",
"//absl/strings:str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -569,6 +590,7 @@ 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",
],
)
diff --git a/absl/log/internal/BUILD.bazel b/absl/log/internal/BUILD.bazel
index d7a30c9e..49d91b3c 100644
--- a/absl/log/internal/BUILD.bazel
+++ b/absl/log/internal/BUILD.bazel
@@ -21,9 +21,15 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = [
- "//absl/log:__pkg__",
-])
+package(
+ default_visibility = [
+ "//absl/log:__pkg__",
+ ],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -390,6 +396,7 @@ cc_test(
"//absl/base:log_severity",
"//absl/log",
"//absl/log:globals",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -401,6 +408,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":fnmatch",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/memory/BUILD.bazel b/absl/memory/BUILD.bazel
index a93f54a6..a3db8d4a 100644
--- a/absl/memory/BUILD.bazel
+++ b/absl/memory/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -47,6 +53,7 @@ cc_test(
deps = [
":memory",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/meta/BUILD.bazel b/absl/meta/BUILD.bazel
index 13051d83..ed69a7fe 100644
--- a/absl/meta/BUILD.bazel
+++ b/absl/meta/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -46,6 +52,7 @@ cc_test(
"//absl/base:config",
"//absl/base:core_headers",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/numeric/BUILD.bazel b/absl/numeric/BUILD.bazel
index c5aaf72b..408e5974 100644
--- a/absl/numeric/BUILD.bazel
+++ b/absl/numeric/BUILD.bazel
@@ -19,7 +19,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -48,6 +54,7 @@ cc_binary(
"//absl/base:core_headers",
"//absl/random",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -62,6 +69,7 @@ cc_test(
deps = [
":bits",
"//absl/random",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -98,6 +106,7 @@ cc_test(
"//absl/hash:hash_testing",
"//absl/meta:type_traits",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -112,6 +121,7 @@ cc_test(
":int128",
"//absl/base:config",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
diff --git a/absl/profiling/BUILD.bazel b/absl/profiling/BUILD.bazel
index 3392c96c..46c973b0 100644
--- a/absl/profiling/BUILD.bazel
+++ b/absl/profiling/BUILD.bazel
@@ -19,7 +19,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:private"])
+package(
+ default_visibility = ["//visibility:private"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -52,6 +58,7 @@ cc_test(
"//absl/synchronization",
"//absl/synchronization:thread_pool",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -80,6 +87,7 @@ cc_test(
deps = [
":exponential_biased",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -109,6 +117,7 @@ cc_test(
deps = [
":periodic_sampler",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/random/BUILD.bazel b/absl/random/BUILD.bazel
index 19130ff7..173e4dd8 100644
--- a/absl/random/BUILD.bazel
+++ b/absl/random/BUILD.bazel
@@ -23,7 +23,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -171,6 +177,7 @@ cc_test(
":random",
"//absl/random/internal:pcg_engine",
"//absl/random/internal:sequence_urbg",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -196,6 +203,7 @@ cc_test(
"//absl/random/internal:sequence_urbg",
"//absl/strings",
"//absl/strings:str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -213,6 +221,7 @@ cc_test(
":distributions",
":random",
"//absl/random/internal:distribution_test_util",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -226,6 +235,7 @@ cc_test(
deps = [
":distributions",
":random",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -250,6 +260,7 @@ cc_test(
"//absl/random/internal:sequence_urbg",
"//absl/strings",
"//absl/strings:str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -270,6 +281,7 @@ cc_test(
"//absl/random/internal:pcg_engine",
"//absl/random/internal:sequence_urbg",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -299,6 +311,7 @@ cc_test(
"//absl/random/internal:sequence_urbg",
"//absl/strings",
"//absl/strings:str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -321,6 +334,7 @@ cc_test(
"//absl/random/internal:sequence_urbg",
"//absl/strings",
"//absl/strings:str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -344,6 +358,7 @@ cc_test(
"//absl/random/internal:sequence_urbg",
"//absl/strings",
"//absl/strings:str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -365,6 +380,7 @@ cc_test(
"//absl/random/internal:pcg_engine",
"//absl/random/internal:sequence_urbg",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -391,6 +407,7 @@ cc_test(
"//absl/random/internal:pcg_engine",
"//absl/random/internal:sequence_urbg",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -411,6 +428,7 @@ cc_test(
"//absl/random/internal:pcg_engine",
"//absl/random/internal:sequence_urbg",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -426,6 +444,7 @@ cc_test(
":random",
"//absl/base:fast_type_id",
"//absl/random/internal:sequence_urbg",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -444,6 +463,7 @@ cc_test(
":mock_distributions",
":mocking_bit_gen",
":random",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -461,6 +481,7 @@ cc_test(
":mock_distributions",
":mocking_bit_gen",
":random",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -476,6 +497,7 @@ cc_test(
],
deps = [
":random",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -490,6 +512,7 @@ cc_test(
":random",
":seed_sequences",
"//absl/random/internal:nonsecure_base",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/random/internal/BUILD.bazel b/absl/random/internal/BUILD.bazel
index 37f4d6e2..036435b0 100644
--- a/absl/random/internal/BUILD.bazel
+++ b/absl/random/internal/BUILD.bazel
@@ -28,7 +28,13 @@ default_package_visibility = [
"//absl/random:__pkg__",
]
-package(default_visibility = default_package_visibility)
+package(
+ default_visibility = default_package_visibility,
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -409,6 +415,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":traits",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -425,6 +432,7 @@ cc_test(
":generate_real",
"//absl/flags:flag",
"//absl/numeric:bits",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -437,6 +445,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":distribution_test_util",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -449,6 +458,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":fastmath",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -462,6 +472,7 @@ cc_test(
deps = [
":explicit_seed_seq",
"//absl/random:seed_sequences",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -474,6 +485,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":salted_seed_seq",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -489,6 +501,7 @@ cc_test(
deps = [
":distribution_test_util",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -503,6 +516,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":fast_uniform_bits",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -543,6 +557,7 @@ cc_test(
"//absl/random:distributions",
"//absl/random:seed_sequences",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -555,6 +570,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":seed_material",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -571,6 +587,7 @@ cc_test(
":pool_urbg",
"//absl/meta:type_traits",
"//absl/types:span",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -586,6 +603,7 @@ cc_test(
":explicit_seed_seq",
":pcg_engine",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -604,6 +622,7 @@ cc_test(
"//absl/log",
"//absl/strings",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -617,6 +636,7 @@ cc_test(
deps = [
":randen",
"//absl/meta:type_traits",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -631,6 +651,7 @@ cc_test(
":platform",
":randen_slow",
"//absl/base:endian",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -662,6 +683,7 @@ cc_test(
":wide_multiply",
"//absl/numeric:bits",
"//absl/numeric:int128",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -742,6 +764,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":iostream_state_saver",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -754,6 +777,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":uniform_helper",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/status/BUILD.bazel b/absl/status/BUILD.bazel
index 8edf714f..3cb21844 100644
--- a/absl/status/BUILD.bazel
+++ b/absl/status/BUILD.bazel
@@ -24,7 +24,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -71,6 +77,7 @@ cc_test(
"//absl/strings",
"//absl/strings:cord",
"//absl/strings:str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -112,6 +119,7 @@ cc_test(
"//absl/types:any",
"//absl/types:variant",
"//absl/utility",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/strings/BUILD.bazel b/absl/strings/BUILD.bazel
index 6d0ed698..af77569a 100644
--- a/absl/strings/BUILD.bazel
+++ b/absl/strings/BUILD.bazel
@@ -22,7 +22,10 @@ load(
package(
default_visibility = ["//visibility:public"],
- features = ["parse_headers"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
)
licenses(["notice"])
@@ -141,6 +144,7 @@ cc_test(
visibility = ["//visibility:private"],
deps = [
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -160,6 +164,7 @@ cc_test(
"//absl/base:core_headers",
"//absl/container:fixed_array",
"//absl/log:check",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -177,6 +182,7 @@ cc_test(
":strings",
"//absl/base:raw_logging_internal",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -188,6 +194,7 @@ cc_test(
visibility = ["//visibility:private"],
deps = [
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -201,6 +208,7 @@ cc_test(
deps = [
":strings",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -214,6 +222,7 @@ cc_test(
deps = [
":strings",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -226,6 +235,7 @@ cc_test(
copts = ABSL_TEST_COPTS,
deps = [
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -243,6 +253,7 @@ cc_test(
":strings",
"//absl/base:core_headers",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -258,6 +269,7 @@ cc_test(
deps = [
":strings",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -273,6 +285,7 @@ cc_test(
deps = [
":internal",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -286,6 +299,7 @@ cc_test(
deps = [
":strings",
"//absl/meta:type_traits",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -302,6 +316,7 @@ cc_test(
"//absl/base:core_headers",
"//absl/base:raw_logging_internal",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -316,6 +331,7 @@ cc_test(
"//absl/base:config",
"//absl/base:core_headers",
"//absl/base:dynamic_annotations",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -335,6 +351,7 @@ cc_test(
":charset",
"//absl/log:check",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -360,6 +377,7 @@ cc_test(
deps = [
":charset",
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -419,6 +437,7 @@ cc_test(
":cord_rep_test_util",
":strings",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -437,6 +456,7 @@ cc_test(
"//absl/base:config",
"//absl/base:raw_logging_internal",
"//absl/cleanup",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -453,6 +473,7 @@ cc_test(
":strings",
"//absl/base:config",
"//absl/base:raw_logging_internal",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -470,6 +491,7 @@ cc_test(
":strings",
"//absl/base:config",
"//absl/base:raw_logging_internal",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -485,6 +507,7 @@ cc_test(
":cord_rep_test_util",
"//absl/base:config",
"//absl/crc:crc_cord_state",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -508,6 +531,7 @@ cc_test(
"//absl/base:config",
"//absl/base:core_headers",
"//absl/synchronization",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -623,6 +647,7 @@ cc_test(
":cordz_update_scope",
":cordz_update_tracker",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -683,6 +708,7 @@ cc_test(
":cordz_functions",
":cordz_test_helpers",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -701,6 +727,7 @@ cc_test(
"//absl/synchronization",
"//absl/synchronization:thread_pool",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -722,6 +749,7 @@ cc_test(
"//absl/debugging:stacktrace",
"//absl/debugging:symbolize",
"//absl/types:span",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -743,6 +771,7 @@ cc_test(
"//absl/crc:crc_cord_state",
"//absl/synchronization",
"//absl/synchronization:thread_pool",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -764,6 +793,7 @@ cc_test(
"//absl/synchronization",
"//absl/synchronization:thread_pool",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -831,6 +861,7 @@ cc_test(
":string_view",
"//absl/base:config",
"//absl/types:span",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -861,6 +892,7 @@ cc_test(
"//absl/log:check",
"//absl/random",
"//absl/types:optional",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -894,6 +926,7 @@ cc_test(
"//absl/base:config",
"//absl/base:core_headers",
"//absl/base:raw_logging_internal",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -907,6 +940,7 @@ cc_test(
deps = [
":strings",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -921,6 +955,7 @@ cc_test(
":strings",
"//absl/base:raw_logging_internal",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -932,6 +967,7 @@ cc_test(
visibility = ["//visibility:private"],
deps = [
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -948,6 +984,7 @@ cc_test(
"//absl/container:btree",
"//absl/container:flat_hash_map",
"//absl/container:node_hash_map",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -962,6 +999,7 @@ cc_test(
":strings",
"//absl/base:raw_logging_internal",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -973,6 +1011,7 @@ cc_test(
visibility = ["//visibility:private"],
deps = [
":internal",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -986,6 +1025,7 @@ cc_test(
deps = [
":internal",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -1001,6 +1041,7 @@ cc_test(
deps = [
"//absl/base:core_headers",
"//absl/meta:type_traits",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1015,6 +1056,7 @@ cc_test(
":strings",
"//absl/base:core_headers",
"//absl/memory",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1028,6 +1070,7 @@ cc_test(
deps = [
":strings",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -1040,6 +1083,7 @@ cc_test(
deps = [
":str_format",
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1053,6 +1097,7 @@ cc_test(
deps = [
":strings",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -1074,6 +1119,7 @@ cc_test(
"//absl/numeric:int128",
"//absl/random",
"//absl/random:distributions",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1090,6 +1136,7 @@ cc_test(
"//absl/random",
"//absl/random:distributions",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -1101,6 +1148,7 @@ cc_test(
visibility = ["//visibility:private"],
deps = [
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1113,6 +1161,7 @@ cc_test(
":pow10_helper",
":str_format",
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1128,6 +1177,7 @@ cc_test(
":strings",
"//absl/base:config",
"//absl/log:check",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1143,6 +1193,7 @@ cc_test(
deps = [
":strings",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1158,6 +1209,7 @@ cc_test(
deps = [
":strings",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -1224,6 +1276,7 @@ cc_test(
"//absl/base:config",
"//absl/base:core_headers",
"//absl/types:span",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1239,6 +1292,7 @@ cc_test(
":str_format",
":str_format_internal",
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1251,6 +1305,7 @@ cc_test(
deps = [
":str_format",
":str_format_internal",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1262,6 +1317,7 @@ cc_test(
visibility = ["//visibility:private"],
deps = [
":str_format_internal",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1273,6 +1329,7 @@ cc_test(
visibility = ["//visibility:private"],
deps = [
":str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1290,6 +1347,7 @@ cc_test(
"//absl/base:raw_logging_internal",
"//absl/log",
"//absl/types:optional",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1302,6 +1360,7 @@ cc_test(
deps = [
":cord",
":str_format_internal",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1314,6 +1373,7 @@ cc_test(
deps = [
":str_format_internal",
"//absl/base:core_headers",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1336,6 +1396,7 @@ cc_test(
deps = [
":pow10_helper",
":str_format",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -1363,6 +1424,7 @@ cc_test(
deps = [
":str_format",
":strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/synchronization/BUILD.bazel b/absl/synchronization/BUILD.bazel
index 0ca94e01..f26e2b3e 100644
--- a/absl/synchronization/BUILD.bazel
+++ b/absl/synchronization/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:private"])
+package(
+ default_visibility = ["//visibility:private"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -76,6 +82,7 @@ cc_test(
"//absl/base:config",
"//absl/random",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -151,6 +158,7 @@ cc_test(
deps = [
":synchronization",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -167,6 +175,7 @@ cc_test(
deps = [
":synchronization",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -196,6 +205,7 @@ cc_test(
"//absl/base:core_headers",
"//absl/log",
"//absl/log:check",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -212,6 +222,7 @@ cc_test(
":graphcycles_internal",
"//absl/base:raw_logging_internal",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -248,6 +259,7 @@ cc_test(
"//absl/log:check",
"//absl/memory",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -260,6 +272,7 @@ cc_test(
deps = [
":synchronization",
"//absl/base:config",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -303,6 +316,7 @@ cc_test(
deps = [
":synchronization",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -356,6 +370,7 @@ cc_test(
"//absl/base:config",
"//absl/random",
"//absl/time",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/time/BUILD.bazel b/absl/time/BUILD.bazel
index 88d20887..ea5fba6c 100644
--- a/absl/time/BUILD.bazel
+++ b/absl/time/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -93,6 +99,7 @@ cc_test(
"//absl/numeric:int128",
"//absl/strings:str_format",
"//absl/time/internal/cctz:time_zone",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -117,6 +124,7 @@ cc_test(
":time",
"//absl/flags:flag",
"//absl/flags:reflection",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/types/BUILD.bazel b/absl/types/BUILD.bazel
index 34f398bb..5d3dedba 100644
--- a/absl/types/BUILD.bazel
+++ b/absl/types/BUILD.bazel
@@ -20,7 +20,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -79,6 +85,7 @@ cc_test(
"//absl/base:exception_testing",
"//absl/container:test_instance_tracker",
"//absl/log",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -92,6 +99,7 @@ cc_test(
":any",
"//absl/base:config",
"//absl/base:exception_safety_testing",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -129,6 +137,7 @@ cc_test(
"//absl/container:inlined_vector",
"//absl/hash:hash_testing",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -188,6 +197,7 @@ cc_test(
"//absl/log",
"//absl/meta:type_traits",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -203,6 +213,7 @@ cc_test(
":optional",
"//absl/base:config",
"//absl/base:exception_safety_testing",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -236,6 +247,7 @@ cc_test(
"//absl/memory",
"//absl/meta:type_traits",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -252,6 +264,7 @@ cc_test(
":variant",
"//absl/utility",
"@com_github_google_benchmark//:benchmark_main",
+ "@com_google_googletest//:gtest",
],
)
@@ -268,6 +281,7 @@ cc_test(
"//absl/base:config",
"//absl/base:exception_safety_testing",
"//absl/memory",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -293,6 +307,7 @@ cc_test(
deps = [
":compare",
"//absl/base",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/utility/BUILD.bazel b/absl/utility/BUILD.bazel
index 061f4c5b..d4f09a9c 100644
--- a/absl/utility/BUILD.bazel
+++ b/absl/utility/BUILD.bazel
@@ -21,7 +21,13 @@ load(
"ABSL_TEST_COPTS",
)
-package(default_visibility = ["//visibility:public"])
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "layering_check",
+ "parse_headers",
+ ],
+)
licenses(["notice"])
@@ -49,6 +55,7 @@ cc_test(
"//absl/base:core_headers",
"//absl/memory",
"//absl/strings",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)
@@ -72,6 +79,7 @@ cc_test(
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
":if_constexpr",
+ "@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)