Add tests for core library neverallow rules

Bug: 134566750
Test: m
Change-Id: I65e2afdf726937c29fc4f62a317024dc133254bf
This commit is contained in:
Paul Duffin
2019-06-07 11:43:55 +01:00
parent 7268fd494d
commit b6c6bdd1c2
2 changed files with 38 additions and 2 deletions

View File

@@ -95,6 +95,9 @@ func createLibcoreRules() []*rule {
"external/icu",
"external/okhttp",
"external/wycheproof",
// Not really a core library but still needs access to same capabilities.
"development",
}
// Core library constraints. The no_standard_libs can only be used in core
@@ -102,7 +105,7 @@ func createLibcoreRules() []*rule {
// visibility rules.
rules := []*rule{
neverallow().
notIn(append(coreLibraryProjects, "development")...).
notIn(coreLibraryProjects...).
with("no_standard_libs", "true"),
}