From 939e6a1aceff448445928ad5d815479e84e84383 Mon Sep 17 00:00:00 2001 From: Aaron Whyte Date: Fri, 21 Nov 2014 17:03:26 -0800 Subject: 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 Change-Id: I21ffc5c9c72eb4379478c11687d197dab176a851 --- support/src/test/java/tests/support/Support_Configuration.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'support/src/test') diff --git a/support/src/test/java/tests/support/Support_Configuration.java b/support/src/test/java/tests/support/Support_Configuration.java index 9cb617d..313a448 100644 --- a/support/src/test/java/tests/support/Support_Configuration.java +++ b/support/src/test/java/tests/support/Support_Configuration.java @@ -91,8 +91,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; /** -- cgit v1.1