@Test public void DelayedRequestHelper_cancel_shouldCancelDelayedRunnable() throws Exception { delayedRequestHelper.cancel(); verify(mockHandler).removeCallbacks(delayedRequestHelper.mDelayedRunnable); }
public void cancel(@NonNull final Request<?> request) { Preconditions.checkNotNull(request); cancelAll(new RequestFilter() { @Override public boolean apply(Request<?> _request) { return request == _request; } }); }
MoPubRequestQueue extends RequestQueue { public void cancel(@NonNull final Request<?> request) { Preconditions.checkNotNull(request); cancelAll(new RequestFilter() { @Override public boolean apply(Request<?> _request) { return request == _request; } }); } }
MoPubRequestQueue extends RequestQueue { public void cancel(@NonNull final Request<?> request) { Preconditions.checkNotNull(request); cancelAll(new RequestFilter() { @Override public boolean apply(Request<?> _request) { return request == _request; } }); } MoPubRequestQueue(Cache cache, Network network, int threadPoolSize, ResponseDelivery delivery);   MoPubRequestQueue(Cache cache, Network network, int threadPoolSize);   MoPubRequestQueue(Cache cache, Network network); }
MoPubRequestQueue extends RequestQueue { public void cancel(@NonNull final Request<?> request) { Preconditions.checkNotNull(request); cancelAll(new RequestFilter() { @Override public boolean apply(Request<?> _request) { return request == _request; } }); } MoPubRequestQueue(Cache cache, Network network, int threadPoolSize, ResponseDelivery delivery);   MoPubRequestQueue(Cache cache, Network network, int threadPoolSize);   MoPubRequestQueue(Cache cache, Network network); void addDelayedRequest(@NonNull Request<?> request, int delayMs); @Override void cancelAll(@NonNull RequestFilter filter); @Override void cancelAll(@NonNull final Object tag); void cancel(@NonNull final Request<?> request); }
MoPubRequestQueue extends RequestQueue { public void cancel(@NonNull final Request<?> request) { Preconditions.checkNotNull(request); cancelAll(new RequestFilter() { @Override public boolean apply(Request<?> _request) { return request == _request; } }); } MoPubRequestQueue(Cache cache, Network network, int threadPoolSize, ResponseDelivery delivery);   MoPubRequestQueue(Cache cache, Network network, int threadPoolSize);   MoPubRequestQueue(Cache cache, Network network); void addDelayedRequest(@NonNull Request<?> request, int delayMs); @Override void cancelAll(@NonNull RequestFilter filter); @Override void cancelAll(@NonNull final Object tag); void cancel(@NonNull final Request<?> request);  }