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

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

Issue 12504006: Make IOSink implement StringSink (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed second round of review comments Created 7 years, 9 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_10_test.dart ('k') | tests/standalone/io/http_client_connect_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_basic_test.dart
diff --git a/tests/standalone/io/http_basic_test.dart b/tests/standalone/io/http_basic_test.dart
index eff6f5d056d168e2ad0b4458a017dddb5c57e85e..343852e1b53891971a8003d735271a17e30f237a 100644
--- a/tests/standalone/io/http_basic_test.dart
+++ b/tests/standalone/io/http_basic_test.dart
@@ -110,7 +110,7 @@ class TestServer {
var response = request.response;
Expect.equals("GET", request.method);
request.listen((_) {}, onDone: () {
- response.addString("01234567890");
+ response.write("01234567890");
response.close();
});
}
@@ -120,7 +120,7 @@ class TestServer {
var response = request.response;
response.statusCode = HttpStatus.NOT_FOUND;
response.headers.set("Content-Type", "text/html; charset=UTF-8");
- response.addString("Page not found");
+ response.write("Page not found");
response.close();
}
@@ -228,11 +228,11 @@ void testPOST(bool chunkedEncoding) {
httpClient.post("127.0.0.1", port, "/echo")
.then((request) {
if (chunkedEncoding) {
- request.addString(data.substring(0, 10));
- request.addString(data.substring(10, data.length));
+ request.write(data.substring(0, 10));
+ request.write(data.substring(10, data.length));
} else {
request.contentLength = data.length;
- request.addString(data);
+ request.write(data);
}
return request.close();
})
« no previous file with comments | « tests/standalone/io/http_10_test.dart ('k') | tests/standalone/io/http_client_connect_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698