diff options
author | Vinh Tran <vinhdaitran@google.com> | 2022-12-02 15:39:43 -0500 |
---|---|---|
committer | Vinh Tran <vinhdaitran@google.com> | 2022-12-02 16:16:58 -0500 |
commit | c4c60d6648545555a337a02e3c1ad90bfc8e8dcf (patch) | |
tree | a17aafca40b054b008e94e36a7d44968fa4d013c /build/aidl_interface_bp2build_test.go | |
parent | 52c03eb231f9c63c5dc2249866e7918a147b7cbc (diff) | |
download | aidl-c4c60d6648545555a337a02e3c1ad90bfc8e8dcf.tar.gz |
Convert aidl_interface's unstable prop to Bazel
Converting unstable prop to Bazel to add support for next_version in aidl_interface Bazel macro
Test: go test
Bug: 261139208
Change-Id: If6739422ae0121e1d9506a1402c48f6c0c55de4b
Diffstat (limited to 'build/aidl_interface_bp2build_test.go')
-rw-r--r-- | build/aidl_interface_bp2build_test.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build/aidl_interface_bp2build_test.go b/build/aidl_interface_bp2build_test.go index 7236bd8f..78c63995 100644 --- a/build/aidl_interface_bp2build_test.go +++ b/build/aidl_interface_bp2build_test.go @@ -307,3 +307,30 @@ func TestAidlInterfaceWithCppAndNdkConfigs(t *testing.T) { }, }) } + +func TestAidlInterfaceWithUnstablePropSet(t *testing.T) { + runAidlInterfaceTestCase(t, bp2build.Bp2buildTestCase{ + Description: `aidl_interface with unstable prop set`, + Blueprint: ` + aidl_interface { + name: "foo", + unstable: true, + backend: { + java: { + enabled: false, + }, + cpp: { + enabled: false, + }, + } + }`, + ExpectedBazelTargets: []string{ + bp2build.MakeBazelTargetNoRestrictions("aidl_interface", "foo", bp2build.AttrNameToString{ + "unstable": "True", + "ndk_config": `{ + "enabled": True, + }`, + }), + }, + }) +} |