summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorAaron Whyte <awhyte@google.com>2014-11-21 17:03:26 -0800
committerNarayan Kamath <narayan@google.com>2014-11-27 11:40:13 +0000
commitd8ce757d85ba665fa61d35e25e03c4de16c0f4c6 (patch)
tree038794577d32e500bfa531961e3b768ced76f20e /support
parentc0f3fe39b030fd696e2afb5790df8e54b3c3b0fe (diff)
downloadlibcore-d8ce757d85ba665fa61d35e25e03c4de16c0f4c6.zip
libcore-d8ce757d85ba665fa61d35e25e03c4de16c0f4c6.tar.gz
libcore-d8ce757d85ba665fa61d35e25e03c4de16c0f4c6.tar.bz2
Fix URLConnectionTest for devices without full internet access.
This removes two bad tests that are covered elsewhere, using mocks. test_getContentEncoding() was hitting http://www.amazon.com, to see if a URLConnection getter was working. That getter is now tested in libcore/luni/src/test/java/libcore/java/net/URLConnectionTest.java, in testClientConfiguredGzipContentEncoding(). test_getLastModified() was hitting http://www.php.net/manual/en/function.explode.php, to see if getHeaderFieldDate was working for Last-Modified. That getter is better tested in test_getHeaderFieldDateLjava_lang_StringJ(), in the same file. Bug:18480776 (cherry picked from commit 939e6a1aceff448445928ad5d815479e84e84383) Change-Id: Ia01fd59809683317271017364179e1843c149e65
Diffstat (limited to 'support')
-rw-r--r--support/src/test/java/tests/support/Support_Configuration.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/support/src/test/java/tests/support/Support_Configuration.java b/support/src/test/java/tests/support/Support_Configuration.java
index 0658d54..8058315 100644
--- a/support/src/test/java/tests/support/Support_Configuration.java
+++ b/support/src/test/java/tests/support/Support_Configuration.java
@@ -86,8 +86,6 @@ public class Support_Configuration {
// than one addresses returned for this host name as needed by a test
// END android-changed
- public static String hTTPURLwLastModified = "http://www.php.net/manual/en/function.explode.php";
-
public static int SpecialInetTestAddressNumber = 4;
/**