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

Unified Diff: tests/standalone/io/http_connection_close_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_close_test.dart ('k') | tests/standalone/io/http_content_length_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_connection_close_test.dart
diff --git a/tests/standalone/io/http_connection_close_test.dart b/tests/standalone/io/http_connection_close_test.dart
index a2a11c749e1acdecb8f53a6660c887eef0b16268..7bc03838462c94a00be55b6985620aba5d4f70d4 100644
--- a/tests/standalone/io/http_connection_close_test.dart
+++ b/tests/standalone/io/http_connection_close_test.dart
@@ -15,7 +15,7 @@ void testHttp10Close(bool closeRequest) {
Socket.connect("127.0.0.1", server.port)
.then((socket) {
- socket.addString("GET / HTTP/1.0\r\n\r\n");
+ socket.write("GET / HTTP/1.0\r\n\r\n");
socket.listen(
(data) {},
onDone: () {
@@ -36,7 +36,7 @@ void testHttp11Close(bool closeRequest) {
Socket.connect("127.0.0.1", server.port)
.then((socket) {
List<int> buffer = new List<int>(1024);
- socket.addString("GET / HTTP/1.1\r\nConnection: close\r\n\r\n");
+ socket.write("GET / HTTP/1.1\r\nConnection: close\r\n\r\n");
socket.listen(
(data) {},
onDone: () {
@@ -53,7 +53,7 @@ void testStreamResponse() {
server.listen((request) {
// TODO(ajohnsen): Use timer (see old version).
for (int i = 0; i < 10; i++) {
- request.response.addString(
+ request.response.write(
'data:${new DateTime.now().millisecondsSinceEpoch}\n\n');
}
});
« no previous file with comments | « tests/standalone/io/http_close_test.dart ('k') | tests/standalone/io/http_content_length_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698