android.AssertBoolEquals(t,"Stub library from API surface should be linked with target version",true,hasDirectDependency(t,ctx,binfoo,libbarApiImportv29))
android.AssertBoolEquals(t,"Stub library variant from API surface should be linked with target version",true,hasDirectDependency(t,ctx,libbarApiImportv29,libbarApiVariantv29))
android.AssertBoolEquals(t,"Stub library from API surface should not be linked with different version",false,hasDirectDependency(t,ctx,binfoo,libbarApiImportv30))
android.AssertBoolEquals(t,"Stub library variant from API surface should not be linked with different version",false,hasDirectDependency(t,ctx,libbarApiImportv29,libbarApiVariantv30))
android.AssertBoolEquals(t,"Stub library from API surface should be linked with target version",true,hasDirectDependency(t,ctx,binbaz,libbarApiImportv30))
android.AssertBoolEquals(t,"Stub library from API surface should not be linked with different version",false,hasDirectDependency(t,ctx,binbaz,libbarApiImportv29))
android.AssertBoolEquals(t,"Binary using SDK should be linked with API library from NDK variant",true,hasDirectDependency(t,ctx,binfoo,libbarApiImportv29))
android.AssertBoolEquals(t,"Binary using SDK should not be linked with API library from LLNDK variant",false,hasDirectDependency(t,ctx,binfoo,libbarApiImportLlndk))
android.AssertBoolEquals(t,"Vendor binary should be linked with API library from LLNDK variant",true,hasDirectDependency(t,ctx,binbaz,libbarApiImportLlndk))
android.AssertBoolEquals(t,"Vendor binary should not be linked with API library from NDK variant",false,hasDirectDependency(t,ctx,binbaz,libbarApiImportv29))