Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Unified Diff: tests/standalone/io/http_detach_socket_test.dart

Issue 13934002: Add support for client-side GZip compression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/http_compression_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_detach_socket_test.dart
diff --git a/tests/standalone/io/http_detach_socket_test.dart b/tests/standalone/io/http_detach_socket_test.dart
index 11e8430f3825860ebb7b4abe7645fcbd65cd8fcc..7d14b379d07a17b1045116acc56899ba04d5d1ae 100644
--- a/tests/standalone/io/http_detach_socket_test.dart
+++ b/tests/standalone/io/http_detach_socket_test.dart
@@ -30,8 +30,8 @@ void testServerDetachSocket() {
Socket.connect("127.0.0.1", server.port).then((socket) {
socket.write("GET / HTTP/1.1\r\n"
- "content-length: 0\r\n\r\n"
- "Some data");
+ "content-length: 0\r\n\r\n"
+ "Some data");
var body = new StringBuffer();
socket.listen(
(data) => body.write(new String.fromCharCodes(data)),
@@ -59,7 +59,7 @@ void testBadServerDetachSocket() {
Socket.connect("127.0.0.1", server.port).then((socket) {
socket.write("GET / HTTP/1.1\r\n"
- "content-length: 0\r\n\r\n");
+ "content-length: 0\r\n\r\n");
socket.listen((_) {}, onDone: () {
socket.close();
});
@@ -78,6 +78,7 @@ void testClientDetachSocket() {
(data) => body.write(new String.fromCharCodes(data)),
onDone: () {
Expect.equals("GET / HTTP/1.1\r\n"
+ "accept-encoding: gzip\r\n"
"content-length: 0\r\n"
"host: 127.0.0.1:${server.port}\r\n\r\n"
"Some data",
« no previous file with comments | « tests/standalone/io/http_compression_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698