/external/volley/src/test/java/com/android/volley/ |
D | CacheDispatcherTest.java | 50 private @Mock ResponseDelivery mDelivery; field in CacheDispatcherTest 59 mDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery); in setUp() 91 verifyNoResponse(mDelivery); in cancelledRequest() 98 verifyNoResponse(mDelivery); in cacheMiss() 109 verify(mDelivery).postResponse(any(Request.class), any(Response.class)); in nonExpiredCacheHit() 110 verify(mDelivery, never()).postError(any(Request.class), any(VolleyError.class)); in nonExpiredCacheHit() 123 verify(mDelivery).postResponse(any(Request.class), any(Response.class), runnable.capture()); in softExpiredCacheHit() 129 verify(mDelivery, never()).postError(any(Request.class), any(VolleyError.class)); in softExpiredCacheHit() 138 verifyNoResponse(mDelivery); in expiredCacheHit() 152 verifyNoResponse(mDelivery); in duplicateCacheMiss() [all …]
|
D | ResponseDeliveryTest.java | 33 private ExecutorDelivery mDelivery; field in ResponseDeliveryTest 40 mDelivery = new ImmediateResponseDelivery(); in setUp() 50 mDelivery.postResponse(mRequest, mSuccessResponse); in postResponseCallsDeliverResponse() 58 mDelivery.postResponse(mRequest, mSuccessResponse); in postResponseSuppressesCanceled() 67 mDelivery.postResponse(mRequest, errorResponse); in postErrorCallsDeliverError()
|
D | NetworkDispatcherTest.java | 47 private @Mock ResponseDelivery mDelivery; field in NetworkDispatcherTest 60 mDispatcher = new NetworkDispatcher(mNetworkQueue, mNetwork, mCache, mDelivery); in setUp() 70 verify(mDelivery).postResponse(any(Request.class), response.capture()); in successPostsResponse() 74 verify(mDelivery, never()).postError(any(Request.class), any(VolleyError.class)); in successPostsResponse() 80 RequestQueue queue = new RequestQueue(new NoCache(), mNetwork, 0, mDelivery); in successNotifiesListener() 104 verify(mDelivery).postError(any(Request.class), any(VolleyError.class)); in exceptionPostsError() 105 verify(mDelivery, never()).postResponse(any(Request.class), any(Response.class)); in exceptionPostsError() 111 RequestQueue queue = new RequestQueue(new NoCache(), mNetwork, 0, mDelivery); in exceptionNotifiesListener()
|
D | RequestQueueTest.java | 42 private ResponseDelivery mDelivery; field in RequestQueueTest 47 mDelivery = new ImmediateResponseDelivery(); in setUp() 53 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 0, mDelivery); in cancelAll_onlyCorrectTag() 80 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 0, mDelivery); in add_notifiesListener() 93 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 0, mDelivery); in finish_notifiesListener() 107 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 0, mDelivery); in sendRequestEvent_notifiesListener() 121 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 0, mDelivery); in removeRequestEventListener_removesListener()
|
D | RequestQueueIntegrationTest.java | 52 private ResponseDelivery mDelivery; field in RequestQueueIntegrationTest 59 mDelivery = new ImmediateResponseDelivery(); in setUp() 89 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 1, mDelivery); in add_requestProcessedInCorrectOrder() 124 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 3, mDelivery); in add_dedupeByCacheKey() 152 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 1, mDelivery); in add_requestFinishedListenerCanceled() 169 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 1, mDelivery); in add_requestFinishedListenerSuccess() 186 RequestQueue queue = new RequestQueue(new NoCache(), mMockNetwork, 1, mDelivery); in add_requestFinishedListenerError()
|
D | RequestTest.java | 40 private @Mock ResponseDelivery mDelivery; field in RequestTest 210 RequestQueue queue = new RequestQueue(new NoCache(), mNetwork, 0, mDelivery);
|
/external/volley/src/main/java/com/android/volley/ |
D | NetworkDispatcher.java | 44 private final ResponseDelivery mDelivery; field in NetworkDispatcher 65 mDelivery = delivery; in NetworkDispatcher() 156 mDelivery.postResponse(request, response); in processRequest() 166 mDelivery.postError(request, volleyError); in processRequest() 175 mDelivery.postError(request, error); in parseAndDeliverNetworkError()
|
D | CacheDispatcher.java | 49 private final ResponseDelivery mDelivery; field in CacheDispatcher 74 mDelivery = delivery; in CacheDispatcher() 164 mDelivery.postResponse(request, response); in processRequest() 177 mDelivery.postResponse( in processRequest() 194 mDelivery.postResponse(request, response); in processRequest() 242 mCacheDispatcher.mDelivery.postResponse(waiting, response); in onResponseReceived()
|
D | RequestQueue.java | 116 private final ResponseDelivery mDelivery; field in RequestQueue 142 mDelivery = delivery; in RequestQueue() 174 mCacheDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery); in start() 180 new NetworkDispatcher(mNetworkQueue, mNetwork, mCache, mDelivery); in start()
|