diff options
author | Jesse Wilson <jessewilson@google.com> | 2011-06-07 08:06:50 -0700 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2011-06-07 15:57:10 -0700 |
commit | 7ad00e6f5ccaf975a49870cdd267d28ae144314e (patch) | |
tree | 66ab7d74acd9b126eb887c5b81417f642640555a /core | |
parent | 0a251cd5ee8bbd8e787a1d17ddbe7f9524a9e313 (diff) | |
download | frameworks_base-7ad00e6f5ccaf975a49870cdd267d28ae144314e.zip frameworks_base-7ad00e6f5ccaf975a49870cdd267d28ae144314e.tar.gz frameworks_base-7ad00e6f5ccaf975a49870cdd267d28ae144314e.tar.bz2 |
Use external/mockwebserver in frameworks/base
Change-Id: Ifb45671e3e7256692c74587984ee5fe1d0eca181
Diffstat (limited to 'core')
4 files changed, 14 insertions, 14 deletions
diff --git a/core/tests/coretests/Android.mk b/core/tests/coretests/Android.mk index b02d904..00f47fa 100644 --- a/core/tests/coretests/Android.mk +++ b/core/tests/coretests/Android.mk @@ -12,7 +12,7 @@ LOCAL_SRC_FILES := \ $(call all-java-files-under, EnabledTestApp/src) LOCAL_DX_FLAGS := --core-library -LOCAL_STATIC_JAVA_LIBRARIES := core-tests android-common frameworks-core-util-lib +LOCAL_STATIC_JAVA_LIBRARIES := core-tests android-common frameworks-core-util-lib mockwebserver LOCAL_JAVA_LIBRARIES := android.test.runner LOCAL_PACKAGE_NAME := FrameworksCoreTests diff --git a/core/tests/coretests/src/android/net/http/AbstractProxyTest.java b/core/tests/coretests/src/android/net/http/AbstractProxyTest.java index ee89414..ee4ce95 100644 --- a/core/tests/coretests/src/android/net/http/AbstractProxyTest.java +++ b/core/tests/coretests/src/android/net/http/AbstractProxyTest.java @@ -16,6 +16,10 @@ package android.net.http; +import com.google.mockwebserver.MockResponse; +import com.google.mockwebserver.MockWebServer; +import com.google.mockwebserver.RecordedRequest; +import com.google.mockwebserver.SocketPolicy; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; @@ -33,10 +37,6 @@ import org.apache.http.conn.params.ConnRouteParams; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.ssl.AllowAllHostnameVerifier; import org.apache.http.conn.ssl.SSLSocketFactory; -import tests.http.MockResponse; -import tests.http.MockWebServer; -import tests.http.RecordedRequest; -import tests.http.SocketPolicy; public abstract class AbstractProxyTest extends TestCase { diff --git a/core/tests/coretests/src/android/net/http/CookiesTest.java b/core/tests/coretests/src/android/net/http/CookiesTest.java index e736bc9..29e590f 100644 --- a/core/tests/coretests/src/android/net/http/CookiesTest.java +++ b/core/tests/coretests/src/android/net/http/CookiesTest.java @@ -16,6 +16,9 @@ package android.net.http; +import com.google.mockwebserver.MockResponse; +import com.google.mockwebserver.MockWebServer; +import com.google.mockwebserver.RecordedRequest; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.URISyntaxException; @@ -30,9 +33,6 @@ import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.conn.params.ConnRoutePNames; import org.apache.http.impl.client.DefaultHttpClient; -import tests.http.MockResponse; -import tests.http.MockWebServer; -import tests.http.RecordedRequest; public final class CookiesTest extends TestCase { diff --git a/core/tests/coretests/src/android/net/http/DefaultHttpClientTest.java b/core/tests/coretests/src/android/net/http/DefaultHttpClientTest.java index ad3ec3d..da77298 100644 --- a/core/tests/coretests/src/android/net/http/DefaultHttpClientTest.java +++ b/core/tests/coretests/src/android/net/http/DefaultHttpClientTest.java @@ -16,6 +16,12 @@ package android.net.http; +import com.google.mockwebserver.MockResponse; +import com.google.mockwebserver.MockWebServer; +import com.google.mockwebserver.SocketPolicy; +import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_END; +import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_INPUT_AT_END; +import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_OUTPUT_AT_END; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; @@ -24,12 +30,6 @@ import junit.framework.TestCase; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; -import tests.http.MockResponse; -import tests.http.MockWebServer; -import tests.http.SocketPolicy; -import static tests.http.SocketPolicy.DISCONNECT_AT_END; -import static tests.http.SocketPolicy.SHUTDOWN_INPUT_AT_END; -import static tests.http.SocketPolicy.SHUTDOWN_OUTPUT_AT_END; public final class DefaultHttpClientTest extends TestCase { |