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

Unified Diff: samples/tests/samples/src/chat/ChatServerTest.dart

Issue 9653026: Add writeString method to OutputStream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 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 | « samples/chat/chat_stress_client.dart ('k') | tests/standalone/src/io/FileTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/tests/samples/src/chat/ChatServerTest.dart
diff --git a/samples/tests/samples/src/chat/ChatServerTest.dart b/samples/tests/samples/src/chat/ChatServerTest.dart
index 6b8911643f3b629819b0403cb41c3309fc5d90da..13228becccd177e539ba09eb6bb52b2c1a8df9ee 100644
--- a/samples/tests/samples/src/chat/ChatServerTest.dart
+++ b/samples/tests/samples/src/chat/ChatServerTest.dart
@@ -65,7 +65,7 @@ class ChatTestClient extends Isolate {
leaveRequest["sessionId"] = sessionId;
HttpClientConnection conn = httpClient.post("127.0.0.1", port, "/leave");
conn.onRequest = (HttpClientRequest request) {
- request.writeString(JSON.stringify(leaveRequest));
+ request.outputStream.writeString(JSON.stringify(leaveRequest));
request.outputStream.close();
};
conn.onResponse = (HttpClientResponse r) {
@@ -126,7 +126,7 @@ class ChatTestClient extends Isolate {
HttpClientConnection conn =
httpClient.post("127.0.0.1", port, "/receive");
conn.onRequest = (HttpClientRequest request) {
- request.writeString(JSON.stringify(receiveRequest));
+ request.outputStream.writeString(JSON.stringify(receiveRequest));
request.outputStream.close();
};
conn.onResponse = (HttpClientResponse r) {
@@ -161,7 +161,7 @@ class ChatTestClient extends Isolate {
HttpClientConnection conn =
httpClient.post("127.0.0.1", port, "/message");
conn.onRequest = (HttpClientRequest request) {
- request.writeString(JSON.stringify(messageRequest));
+ request.outputStream.writeString(JSON.stringify(messageRequest));
request.outputStream.close();
};
conn.onResponse = (HttpClientResponse r) {
@@ -196,7 +196,7 @@ class ChatTestClient extends Isolate {
joinRequest["handle"] = "test1";
HttpClientConnection conn = httpClient.post("127.0.0.1", port, "/join");
conn.onRequest = (HttpClientRequest request) {
- request.writeString(JSON.stringify(joinRequest));
+ request.outputStream.writeString(JSON.stringify(joinRequest));
request.outputStream.close();
};
conn.onResponse = (HttpClientResponse r) {
« no previous file with comments | « samples/chat/chat_stress_client.dart ('k') | tests/standalone/src/io/FileTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698