Merge "Add a test that we get samples for a common core-oj method" am: 5a883e16e8

am: 4616df8a03

Change-Id: Iffbf1889701bd82f94a337411a31dacdb816243e
This commit is contained in:
Mathieu Chartier
2019-10-02 13:24:49 -07:00
committed by android-build-merger

View File

@@ -92,5 +92,18 @@ public class BootImageProfileTest implements IDeviceTest {
} }
assertTrue("Did not see framework.jar in " + res, sawFramework); assertTrue("Did not see framework.jar in " + res, sawFramework);
assertTrue("Did not see services.jar in " + res, sawServices); assertTrue("Did not see services.jar in " + res, sawServices);
// Test the profile contents contain common methods for core-oj that would normally be AOT
// compiled.
res = mTestDevice.executeShellCommand("profman --dump-classes-and-methods --profile-file="
+ SYSTEM_SERVER_PROFILE + " --apk=/apex/com.android.art/javalib/core-oj.jar");
boolean sawObjectInit = false;
for (String line : res.split("\n")) {
if (line.contains("Ljava/lang/Object;-><init>()V")) {
sawObjectInit = true;
}
}
assertTrue("Did not see Object.<init> in " + res, sawObjectInit);
} }
} }