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

Unified Diff: tests/standalone/io/http_request_pipeling_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
Index: tests/standalone/io/http_request_pipeling_test.dart
diff --git a/tests/standalone/io/http_request_pipeling_test.dart b/tests/standalone/io/http_request_pipeling_test.dart
index a96fa8895d4383182773b5b7310a589678f70a2a..b12cb4872826e45ba3c65fd182ead1586559efcd 100644
--- a/tests/standalone/io/http_request_pipeling_test.dart
+++ b/tests/standalone/io/http_request_pipeling_test.dart
@@ -16,7 +16,7 @@ void main() {
HttpServer.bind().then((server) {
server.listen((HttpRequest request) {
count++;
- request.response.addString(request.uri.path);
+ request.response.write(request.uri.path);
request.response.close();
if (request.uri.path == "/done") {
request.response.done.then((_) {
@@ -28,9 +28,9 @@ void main() {
Socket.connect("127.0.0.1", server.port).then((s) {
s.listen((data) { });
for (int i = 0; i < REQUEST_COUNT; i++) {
- s.addString("GET /$i HTTP/1.1\r\nX-Header-1: 111\r\n\r\n");
+ s.write("GET /$i HTTP/1.1\r\nX-Header-1: 111\r\n\r\n");
}
- s.addString("GET /done HTTP/1.1\r\nConnection: close\r\n\r\n");
+ s.write("GET /done HTTP/1.1\r\nConnection: close\r\n\r\n");
s.close();
});
});
« no previous file with comments | « tests/standalone/io/http_read_test.dart ('k') | tests/standalone/io/http_server_early_client_close_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698