Commit 48d36b8e authored by Narayan Kamath's avatar Narayan Kamath Committed by Android (Google) Code Review
Browse files

Merge "Add another test for HttpURLConnection#usingProxy" into klp-dev

parents 3d849f3d b3158d5e
......@@ -261,6 +261,10 @@ public class HttpURLConnectionTest extends TestCase {
assertTrue("Connection does not use proxy",
connection.usingProxy());
assertTrue("Proxy server was not used", proxy.accepted);
connection.disconnect();
assertTrue("usingProxy broken after disconnect",
connection.usingProxy());
} finally {
// restore default proxy selector
ProxySelector.setDefault(defPS);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment