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

Unified Diff: tests/standalone/io/secure_server_stream_test.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/secure_server_stream_test.dart
diff --git a/tests/standalone/io/secure_server_stream_test.dart b/tests/standalone/io/secure_server_stream_test.dart
index d99e93e1d22d519dc22a56f7c5ddac0cadbafaa7..170c5967e808301189ea5af80b2213c6f5678ab3 100644
--- a/tests/standalone/io/secure_server_stream_test.dart
+++ b/tests/standalone/io/secure_server_stream_test.dart
@@ -19,7 +19,7 @@ class SecureTestServer {
input.onClosed = () {
Expect.isTrue(received.contains("Hello from client "));
String name = received.substring(received.indexOf("client ") + 7);
- connection.outputStream.write("Welcome, client $name".charCodes);
+ connection.outputStream.write("Welcome, client $name".codeUnits);
connection.outputStream.close();
};
}
@@ -48,7 +48,7 @@ class SecureTestClient {
SecureTestClient(int this.port, String this.name) {
socket = new SecureSocket(HOST_NAME, port);
numRequests++;
- socket.outputStream.write("Hello from client $name".charCodes);
+ socket.outputStream.write("Hello from client $name".codeUnits);
socket.outputStream.close();
socket.inputStream.onData = () {
reply = reply.concat(new String.fromCharCodes(socket.inputStream.read()));

Powered by Google App Engine
This is Rietveld 408576698