Search in sources :

Example 1 with ThreadHandoffProducerQueue

use of com.facebook.imagepipeline.producers.ThreadHandoffProducerQueue in project fresco by facebook.

the class ThreadHandoffProducerTest method setUp.

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);
    mProducerContext = new SettableProducerContext(mImageRequest, mRequestId, mProducerListener, mock(Object.class), ImageRequest.RequestLevel.FULL_FETCH, false, true, Priority.MEDIUM);
    mTestExecutorService = new TestExecutorService(new FakeClock());
    mThreadHandoffProducer = new ThreadHandoffProducer(mInputProducer, new ThreadHandoffProducerQueue(mTestExecutorService));
}
Also used : FakeClock(com.facebook.imagepipeline.testing.FakeClock) TestExecutorService(com.facebook.imagepipeline.testing.TestExecutorService) ThreadHandoffProducerQueue(com.facebook.imagepipeline.producers.ThreadHandoffProducerQueue)

Aggregations

ThreadHandoffProducerQueue (com.facebook.imagepipeline.producers.ThreadHandoffProducerQueue)1 FakeClock (com.facebook.imagepipeline.testing.FakeClock)1 TestExecutorService (com.facebook.imagepipeline.testing.TestExecutorService)1