Add test for importing a single type.
Test: `cd system/tools/hidl && mma`
Bug: 31821285
Change-Id: I0be97b16b84f76b64c09f9dc52709416601cbbdf
diff --git a/tests/bar/1.0/IBar.hal b/tests/bar/1.0/IBar.hal
index f41c1a5..b57d9a0 100644
--- a/tests/bar/1.0/IBar.hal
+++ b/tests/bar/1.0/IBar.hal
@@ -17,10 +17,16 @@
package android.hardware.tests.bar@1.0;
import android.hardware.tests.foo@1.0::IFoo;
+import android.hardware.tests.foo@1.0::Unrelated;
interface IBar extends android.hardware.tests.foo@1.0::IFoo {
typedef android.hardware.tests.foo@1.0::IFoo FunkyAlias;
+ typedef Unrelated Related;
+
+ struct SomethingRelated {
+ Related myRelated;
+ };
thisIsNew();
};