cb8ab9cb9f5da083e7390920f0f7d0c8a879cb6b |
|
20-Aug-2013 |
Narayan Kamath <narayan@google.com> |
Add bookkeeping requests to the request queue. We'd never add requests which corresponded to DISCONNECT_AT_START and FAIL_HANDSHAKE to the list of received requests. This allows tests to determine whether fallback requests were made or not. While we're here, tidy up RecordedRequest#toString. It would return "null" for bookkeeping requests and produce test outputs like "expected <null> but was null". Fixes CTS test URLConnectionTest#testSslFallback (cherry picked from a4a53d9c9bf86165a5e2bd9ce4bcb834f09d) bug: 10211309 Change-Id: I2ee1b523faf5c1b3387f5ca9f9ad19c0877e1ad5
/external/mockwebserver/src/main/java/com/google/mockwebserver/MockResponse.java
|
7a68ed6a49c3060b235810391a82412a95f9c979 |
|
03-Apr-2013 |
jwilson <jwilson@squareup.com> |
Track upstream changes to mockwebserver. This removes the MockStreamResponse class, replacing it with the previous MockResponse class. The MockStreamResponse class added too much to the MockWebServer API for too little benefit: the BaseResponse class wasn't 'public' but it was required to be public API for callers to call MockWebServer.enqueue(). This approach is less object-oriented, but also a lot smaller. Change-Id: I8496fc3c4dcbfaaf6cd5e97f06d2786b49fa51e1
/external/mockwebserver/src/main/java/com/google/mockwebserver/MockResponse.java
|
3258ac0c995c39e570e0396eea88bf06f0541e68 |
|
21-Mar-2013 |
Jeff Sharkey <jsharkey@android.com> |
Add BaseMockResponse with two flavors. Some tests rely on MockResponses being cloned as they're enqueued, which doesn't mix well with the recent switch to using InputStream to represent all bodies. This change introduces a base class that handles common header management, and two distinct flavors: MockResponse which returns to using byte[] bodies, and MockStreamResponse which is InputStream based. MockResponse are again cloned when enqueued, making existing tests happy. Bug: 8334369 Change-Id: I12b83a06d17ba82d46166c5550397a2198ce68fd
/external/mockwebserver/src/main/java/com/google/mockwebserver/MockResponse.java
|
207c5d59a8f8836a6ffbf3b1d285083805b96661 |
|
22-Feb-2013 |
Jeff Sharkey <jsharkey@android.com> |
Let tests provide raw InputStream bodies. This enables testing of large files, such as those beyond the 2GB boundary. Also switches to streaming in MTU-sized chunks. Bug: 8209169 Change-Id: Iab6b299c13a3d67bbbaa80a9e5bc563ef6cf9302
/external/mockwebserver/src/main/java/com/google/mockwebserver/MockResponse.java
|
3b406d4de9b5f0f1caa990f079075eb0bfc5220a |
|
29-Mar-2012 |
Jeff Sharkey <jsharkey@android.com> |
More header manipulation, limit bytes-per-second. Add setHeader() and removeHeader() that mutate matching MockResponse headers. Support "bytes-per-second" to throttle response rate. Split request line into components. Change-Id: I107baa3727ced2d7ddcc5e3cb983f5dc9341dabd
/external/mockwebserver/src/main/java/com/google/mockwebserver/MockResponse.java
|
54ce6cb5d13f732a3e71aa3555cd3709d5bf3cf5 |
|
07-Jun-2011 |
Jesse Wilson <jessewilson@google.com> |
Add mockwebserver r9 to git. Change-Id: I0bdf85b8066a5799aed92bd444b7681432874a59
/external/mockwebserver/src/main/java/com/google/mockwebserver/MockResponse.java
|