diff options
author | Yifan Hong <elsk@google.com> | 2021-04-20 11:34:15 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2021-04-22 12:50:22 -0700 |
commit | f5059e35d7e16557961070aaa57aae3bfc35ae9e (patch) | |
tree | f8976f5763e222ef54193a44d12acf78ea98aedb | |
parent | edffbb3933e0b7979ee9650800a8aacd0e17341c (diff) | |
download | googletest-f5059e35d7e16557961070aaa57aae3bfc35ae9e.tar.gz |
Add allowlist for libgtest_prod.
Only modules in the allowlist is allowed to use libgtest_prod. This
prevents new users of libgtest_prod.
Once we clean up usages in a project, we can remove from this list.
Test: builds
Bug: 185916167
Change-Id: If9a86723a34ebcb5246c192331f279ff33ee63b1
-rw-r--r-- | googletest/Android.bp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/googletest/Android.bp b/googletest/Android.bp index c7b7be61..716572ed 100644 --- a/googletest/Android.bp +++ b/googletest/Android.bp @@ -116,6 +116,22 @@ cc_defaults { cc_library { name: "libgtest_prod", defaults: ["libgtest_prod_defaults"], + visibility: [ + // DO NOT ADD NEW PROJECTS. Use libgtest_prod_headers instead. + // TODO(b/185916167): When usage of libgtest_prod is cleaned up in a + // project, remove from this list. + "//external/libbrillo", + "//external/libchrome", + "//frameworks/minikin/libs/minikin", + "//hardware/interfaces/rebootescrow/aidl/default", + "//packages/modules/DnsResolver", + "//packages/modules/StatsD:__subpackages__", + "//packages/services/Car:__subpackages__", + "//system/tools/aidl", + "//system/update_engine", + "//test/sts:__subpackages__", + "//tools/security/fuzzing/system_fuzzers:__subpackages__", + ] } cc_library_headers { |