Home
last modified time | relevance | path

Searched refs:mDelivery (Results 1 – 9 of 9) sorted by relevance

/external/volley/src/test/java/com/android/volley/
DCacheDispatcherTest.java50 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 …]
DResponseDeliveryTest.java33 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()
DNetworkDispatcherTest.java47 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()
DRequestQueueTest.java42 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()
DRequestQueueIntegrationTest.java52 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()
DRequestTest.java40 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/
DNetworkDispatcher.java44 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()
DCacheDispatcher.java49 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()
DRequestQueue.java116 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()