Search in sources :

Example 1 with AnimatedDrawableUtil

use of com.facebook.imagepipeline.animated.util.AnimatedDrawableUtil in project fresco by facebook.

the class AnimatedDrawableCachingBackendImplTest method setup.

@Before
public void setup() {
    mActivityManager = (ActivityManager) RuntimeEnvironment.application.getSystemService(Context.ACTIVITY_SERVICE);
    mFakeClock = new FakeClock();
    mExecutorService = new TestExecutorService(mFakeClock);
    mAnimatedDrawableUtil = new AnimatedDrawableUtil();
    mDrawableBackend = new TestAnimatedDrawableBackend(WIDTH, HEIGHT, FRAME_DURATIONS);
}
Also used : TestAnimatedDrawableBackend(com.facebook.imagepipeline.animated.testing.TestAnimatedDrawableBackend) FakeClock(com.facebook.imagepipeline.testing.FakeClock) TestExecutorService(com.facebook.imagepipeline.testing.TestExecutorService) AnimatedDrawableUtil(com.facebook.imagepipeline.animated.util.AnimatedDrawableUtil) Before(org.junit.Before)

Aggregations

TestAnimatedDrawableBackend (com.facebook.imagepipeline.animated.testing.TestAnimatedDrawableBackend)1 AnimatedDrawableUtil (com.facebook.imagepipeline.animated.util.AnimatedDrawableUtil)1 FakeClock (com.facebook.imagepipeline.testing.FakeClock)1 TestExecutorService (com.facebook.imagepipeline.testing.TestExecutorService)1 Before (org.junit.Before)1