Move arch properties to proptools.FilterPropertyStruct

Test: m checkbuild
Change-Id: I85c5e6c86aea4ccf5bcddc2e5d468d66e0b38671
This commit is contained in:
Colin Cross
2019-09-25 11:26:40 -07:00
parent 84dfc3d331
commit 7444910e93
2 changed files with 21 additions and 140 deletions

View File

@@ -17,6 +17,8 @@ package android
import (
"reflect"
"testing"
"github.com/google/blueprint/proptools"
)
type Named struct {
@@ -219,7 +221,7 @@ func TestFilterArchStruct(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
out, filtered := filterArchStruct(reflect.TypeOf(test.in))
out, filtered := proptools.FilterPropertyStruct(reflect.TypeOf(test.in), filterArchStruct)
if filtered != test.filtered {
t.Errorf("expected filtered %v, got %v", test.filtered, filtered)
}