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

Unified Diff: samples/tests/samples/chat/chat_server_test.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: samples/tests/samples/chat/chat_server_test.dart
diff --git a/samples/tests/samples/chat/chat_server_test.dart b/samples/tests/samples/chat/chat_server_test.dart
index 2b7361f0b7d6315a07e9f582adaee5094f442876..57a275d488e97b8e9e6354954b5a8dfb70b1508c 100644
--- a/samples/tests/samples/chat/chat_server_test.dart
+++ b/samples/tests/samples/chat/chat_server_test.dart
@@ -72,7 +72,7 @@ class ChatTestClient {
.then((HttpClientResponse response) {
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => leaveResponseHandler(response, body.toString()));
});
}
@@ -128,7 +128,7 @@ class ChatTestClient {
.then((HttpClientResponse response) {
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => receiveResponseHandler(response, body.toString()));
});
}
@@ -158,7 +158,7 @@ class ChatTestClient {
.then((HttpClientResponse response) {
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => sendResponseHandler(response, body.toString()));
});
}
@@ -189,7 +189,7 @@ class ChatTestClient {
.then((HttpClientResponse response) {
StringBuffer body = new StringBuffer();
response.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => joinResponseHandler(response, body.toString()));
});
}

Powered by Google App Engine
This is Rietveld 408576698