use of org.jf.dexlib2.analysis.ClassProto in project smali by JesusFreke.
the class FieldGapOrderTest method testOldOrder.
@Test
public void testOldOrder() {
DexFile dexFile = getInputDexFile("FieldGapOrder", new BaksmaliOptions());
Assert.assertEquals(3, dexFile.getClasses().size());
ClassPath classPath = new ClassPath(Lists.newArrayList(new DexClassProvider(dexFile)), false, 66);
ClassProto classProto = (ClassProto) classPath.getClass("LGapOrder;");
Assert.assertEquals("r1", classProto.getFieldByOffset(12).getName());
Assert.assertEquals("r2", classProto.getFieldByOffset(16).getName());
Assert.assertEquals("d", classProto.getFieldByOffset(24).getName());
Assert.assertEquals("s", classProto.getFieldByOffset(36).getName());
Assert.assertEquals("i", classProto.getFieldByOffset(32).getName());
}
Aggregations