Search in sources :

Example 1 with ForwardingRequestListener

use of com.facebook.imagepipeline.listener.ForwardingRequestListener in project fresco by facebook.

the class ForwardingRequestListenerTest method setUp.

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);
    mRequestListener1 = mock(RequestListener.class);
    mRequestListener2 = mock(RequestListener.class);
    mRequestListener3 = mock(RequestListener.class);
    when(mRequestListener1.requiresExtraMap(mRequestId)).thenReturn(false);
    when(mRequestListener2.requiresExtraMap(mRequestId)).thenReturn(false);
    when(mRequestListener3.requiresExtraMap(mRequestId)).thenReturn(false);
    mListenerManager = new ForwardingRequestListener(Sets.newHashSet(mRequestListener1, mRequestListener2, mRequestListener3));
}
Also used : ForwardingRequestListener(com.facebook.imagepipeline.listener.ForwardingRequestListener) RequestListener(com.facebook.imagepipeline.listener.RequestListener) ForwardingRequestListener(com.facebook.imagepipeline.listener.ForwardingRequestListener)

Aggregations

ForwardingRequestListener (com.facebook.imagepipeline.listener.ForwardingRequestListener)1 RequestListener (com.facebook.imagepipeline.listener.RequestListener)1