VintfObjectTest: fix test with respect to deprecation schedule changes

Test: atest -bit android.os.VintfObjectTest
Change-Id: I819f99884a8bf8d71b3ae21bdd1508fe9c3e4a7a
Fixes: 79393534
This commit is contained in:
Yifan Hong
2018-05-08 18:30:43 -07:00
parent 9743fae2d9
commit ff5e95b111

View File

@@ -20,6 +20,9 @@ import junit.framework.Assert;
import junit.framework.TestCase;
public class VintfObjectTest extends TestCase {
/**
* Sanity check for {@link VintfObject#report VintfObject.report()}.
*/
public void testReport() {
String[] xmls = VintfObject.report();
assertTrue(xmls.length > 0);
@@ -28,6 +31,6 @@ public class VintfObjectTest extends TestCase {
"<manifest version=\"1.0\" type=\"framework\">"));
// From /system/compatibility-matrix.xml
assertTrue(String.join("", xmls).contains(
"<compatibility-matrix version=\"1.0\" type=\"framework\">"));
"<compatibility-matrix version=\"1.0\" type=\"framework\""));
}
}