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

Unified Diff: tests/standalone/io/http_detach_socket_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: 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..61179fcab4be20882ea30541255f016d7287cbe5 100644
--- a/tests/standalone/io/http_detach_socket_test.dart
+++ b/tests/standalone/io/http_detach_socket_test.dart
@@ -19,7 +19,7 @@ void testServerDetachSocket() {
Expect.isNotNull(socket);
var body = new StringBuffer();
socket.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () => Expect.equals("Some data", body.toString()));
socket.addString("Test!");
socket.close();
@@ -33,7 +33,7 @@ void testServerDetachSocket() {
"Some data");
var body = new StringBuffer();
socket.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () {
Expect.equals("HTTP/1.1 200 OK\r\n"
"content-length: 0\r\n"
@@ -74,7 +74,7 @@ void testClientDetachSocket() {
"Test!");
var body = new StringBuffer();
socket.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () {
Expect.equals("GET / HTTP/1.1\r\n"
"content-length: 0\r\n"
@@ -93,7 +93,7 @@ void testClientDetachSocket() {
response.detachSocket().then((socket) {
var body = new StringBuffer();
socket.listen(
- (data) => body.add(new String.fromCharCodes(data)),
+ (data) => body.write(new String.fromCharCodes(data)),
onDone: () {
Expect.equals("Test!",
body.toString());

Powered by Google App Engine
This is Rietveld 408576698