neverallow: vintf to libhidltransport impl lib

Also delete useless testcase.

Bug: 134961554
Test: build

Change-Id: Ie76492f806757b86d94d29a736773f72ce2ab104
This commit is contained in:
Steven Moreland
2019-06-05 18:27:35 -07:00
parent ea68aad696
commit a1165d6958
2 changed files with 1 additions and 16 deletions

View File

@@ -71,7 +71,7 @@ func createTrebleRules() []*rule {
// TODO(b/67974785): always enforce the manifest
neverallow().
without("name", "libhidltransport").
without("name", "libhidltransport-impl-internal").
with("product_variables.enforce_vintf_manifest.cflags", "*").
because("manifest enforcement should be independent of ."),

View File

@@ -91,21 +91,6 @@ var neverallowTests = []struct {
},
expectedError: "manifest enforcement should be independent",
},
{
name: "libhidltransport enforce_vintf_manifest.cflags",
fs: map[string][]byte{
"Blueprints": []byte(`
cc_library {
name: "libhidltransport",
product_variables: {
enforce_vintf_manifest: {
cflags: ["-DSHOULD_NOT_EXIST"],
},
},
}`),
},
expectedError: "",
},
{
name: "no treble_linker_namespaces.cflags",