Add test for null native_handle_t*.
Test: hidl_test
Bug: 30814137
Change-Id: Ic52a4c588e2fde3859a0ae8c098e5cb60a87efe8
diff --git a/tests/bar/1.0/IBar.hal b/tests/bar/1.0/IBar.hal
index b57d9a0..82c6fc1 100644
--- a/tests/bar/1.0/IBar.hal
+++ b/tests/bar/1.0/IBar.hal
@@ -17,6 +17,7 @@
package android.hardware.tests.bar@1.0;
import android.hardware.tests.foo@1.0::IFoo;
+import android.hardware.tests.foo@1.0::Abc;
import android.hardware.tests.foo@1.0::Unrelated;
interface IBar extends android.hardware.tests.foo@1.0::IFoo {
@@ -29,4 +30,5 @@
};
thisIsNew();
+ expectNullHandle(handle h, Abc xyz) generates (bool hIsNull, bool xyzHasNull);
};