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

Unified Diff: tests/standalone/io/http_detach_socket_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_content_length_test.dart ('k') | tests/standalone/io/http_head_test.dart » ('j') | 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 e3a5ad533345ff848880b4212a340d25072537db..b16229668779d4367374ad126a6e8c835d635a0f 100644
--- a/tests/standalone/io/http_detach_socket_test.dart
+++ b/tests/standalone/io/http_detach_socket_test.dart
@@ -21,14 +21,14 @@ void testServerDetachSocket() {
socket.listen(
(data) => body.add(new String.fromCharCodes(data)),
onDone: () => Expect.equals("Some data", body.toString()));
- socket.addString("Test!");
+ socket.write("Test!");
socket.close();
});
server.close();
});
Socket.connect("127.0.0.1", server.port).then((socket) {
- socket.addString("GET / HTTP/1.1\r\n"
+ socket.write("GET / HTTP/1.1\r\n"
"content-length: 0\r\n\r\n"
"Some data");
var body = new StringBuffer();
@@ -57,7 +57,7 @@ void testBadServerDetachSocket() {
});
Socket.connect("127.0.0.1", server.port).then((socket) {
- socket.addString("GET / HTTP/1.1\r\n"
+ socket.write("GET / HTTP/1.1\r\n"
"content-length: 0\r\n\r\n");
socket.listen((_) {}, onDone: () {
socket.close();
@@ -69,7 +69,7 @@ void testBadServerDetachSocket() {
void testClientDetachSocket() {
ServerSocket.bind().then((server) {
server.listen((socket) {
- socket.addString("HTTP/1.1 200 OK\r\n"
+ socket.write("HTTP/1.1 200 OK\r\n"
"\r\n"
"Test!");
var body = new StringBuffer();
@@ -99,7 +99,7 @@ void testClientDetachSocket() {
body.toString());
client.close();
});
- socket.addString("Some data");
+ socket.write("Some data");
socket.close();
});
});
« no previous file with comments | « tests/standalone/io/http_content_length_test.dart ('k') | tests/standalone/io/http_head_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698