Merge "neverallow: vintf to libhidltransport impl lib" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6df90831b7
@@ -71,7 +71,7 @@ func createTrebleRules() []*rule {
|
|||||||
|
|
||||||
// TODO(b/67974785): always enforce the manifest
|
// TODO(b/67974785): always enforce the manifest
|
||||||
neverallow().
|
neverallow().
|
||||||
without("name", "libhidltransport").
|
without("name", "libhidltransport-impl-internal").
|
||||||
with("product_variables.enforce_vintf_manifest.cflags", "*").
|
with("product_variables.enforce_vintf_manifest.cflags", "*").
|
||||||
because("manifest enforcement should be independent of ."),
|
because("manifest enforcement should be independent of ."),
|
||||||
|
|
||||||
|
@@ -91,21 +91,6 @@ var neverallowTests = []struct {
|
|||||||
},
|
},
|
||||||
expectedError: "manifest enforcement should be independent",
|
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",
|
name: "no treble_linker_namespaces.cflags",
|
||||||
|
Reference in New Issue
Block a user