use of com.facebook.drawee.drawable.ScaleTypeDrawable in project fresco by facebook.
the class GenericDraweeHierarchyTest method assertActualImageScaleType.
private void assertActualImageScaleType(ScaleType expectedScaleType, PointF expectedFocusPoint, Drawable actualBranch) {
assertNotNull(actualBranch);
ScaleTypeDrawable scaleTypeDrawable = (ScaleTypeDrawable) actualBranch;
assertSame(expectedScaleType, scaleTypeDrawable.getScaleType());
assertSame(ForwardingDrawable.class, scaleTypeDrawable.getCurrent().getClass());
AndroidGraphicsTestUtils.assertEquals(expectedFocusPoint, scaleTypeDrawable.getFocusPoint(), 0);
}
Aggregations