diff options
author | Neil Fuller <nfuller@google.com> | 2014-12-02 15:28:24 +0000 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2015-01-20 10:48:51 +0000 |
commit | 764ea3d867b544de457aac2d02327d7b796d4a5c (patch) | |
tree | 6c43b5844338b597ecde685f5913ef2e52558557 /luni | |
parent | d182f85c484f6be01b6bff015adc00a01fa63935 (diff) | |
download | libcore-764ea3d867b544de457aac2d02327d7b796d4a5c.zip libcore-764ea3d867b544de457aac2d02327d7b796d4a5c.tar.gz libcore-764ea3d867b544de457aac2d02327d7b796d4a5c.tar.bz2 |
Changes needed to support OkHttp upgrade
Change-Id: Ifd6ed8ab22e7fd5d8cb8c9eb28976291d125c0e4
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/test/java/libcore/java/net/URLConnectionTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/luni/src/test/java/libcore/java/net/URLConnectionTest.java b/luni/src/test/java/libcore/java/net/URLConnectionTest.java index 8991b1a..2269011 100644 --- a/luni/src/test/java/libcore/java/net/URLConnectionTest.java +++ b/luni/src/test/java/libcore/java/net/URLConnectionTest.java @@ -16,7 +16,7 @@ package libcore.java.net; -import com.android.okhttp.HttpResponseCache; +import com.android.okhttp.AndroidShimResponseCache; import com.google.mockwebserver.MockResponse; import com.google.mockwebserver.MockWebServer; @@ -88,7 +88,7 @@ import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_OUTPUT_AT_END; public final class URLConnectionTest extends AbstractResourceLeakageDetectorTestCase { private MockWebServer server; - private HttpResponseCache cache; + private AndroidShimResponseCache cache; private String hostName; @Override protected void setUp() throws Exception { @@ -678,7 +678,7 @@ public final class URLConnectionTest extends AbstractResourceLeakageDetectorTest private void initResponseCache() throws IOException { String tmp = System.getProperty("java.io.tmpdir"); File cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID()); - cache = new HttpResponseCache(cacheDir, Integer.MAX_VALUE); + cache = AndroidShimResponseCache.create(cacheDir, Integer.MAX_VALUE); ResponseCache.setDefault(cache); } |