diff options
author | Jesse Wilson <jessewilson@google.com> | 2011-01-13 16:25:22 -0800 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2011-01-13 16:25:22 -0800 |
commit | f162edaa335461474b020027bb2e85eb3be2c179 (patch) | |
tree | 126f8a570b82fe62ef61b3045aa7df0cc0342cf1 /support/src/test/java | |
parent | 094ef67758c76f2331378a3805b1e6db8ada17fe (diff) | |
download | libcore-f162edaa335461474b020027bb2e85eb3be2c179.zip libcore-f162edaa335461474b020027bb2e85eb3be2c179.tar.gz libcore-f162edaa335461474b020027bb2e85eb3be2c179.tar.bz2 |
Fix HTTP cookie to do case mapping with Locale.US.
While I'm here fix a MockWebServer bug I recently introduced
that broke cookie tests that needed to know port numbers before
responses were enqueued.
Change-Id: Idb2389ac5ed66656248c10aeb68209641acc0a68
http://b/3325637
Diffstat (limited to 'support/src/test/java')
-rw-r--r-- | support/src/test/java/tests/http/MockWebServer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/src/test/java/tests/http/MockWebServer.java b/support/src/test/java/tests/http/MockWebServer.java index 4a2b7ec..35729ed 100644 --- a/support/src/test/java/tests/http/MockWebServer.java +++ b/support/src/test/java/tests/http/MockWebServer.java @@ -193,7 +193,7 @@ public final class MockWebServer { } private void acceptConnections() throws Exception { - while (!responseQueue.isEmpty()) { + do { Socket socket; try { socket = serverSocket.accept(); @@ -208,7 +208,7 @@ public final class MockWebServer { openClientSockets.add(socket); serveConnection(socket); } - } + } while (!responseQueue.isEmpty()); } })); } |