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

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

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head 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
« no previous file with comments | « tests/standalone/io/http_read_test.dart ('k') | tests/standalone/io/mime_multipart_parser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_server_early_client_close_test.dart
diff --git a/tests/standalone/io/http_server_early_client_close_test.dart b/tests/standalone/io/http_server_early_client_close_test.dart
index b59857e5f7f3fc4f08713b5b1a0e30fb46f8ab9c..2f7586250fff094513510608cb4655dbfd11eac7 100644
--- a/tests/standalone/io/http_server_early_client_close_test.dart
+++ b/tests/standalone/io/http_server_early_client_close_test.dart
@@ -57,7 +57,7 @@ class EarlyCloseTest {
List<int> d;
if (data is List<int>) d = data;
- if (data is String) d = data.charCodes;
+ if (data is String) d = data.codeUnits;
if (d == null) Expect.fail("Invalid data");
sendData(d, server.port);
@@ -116,7 +116,7 @@ testEarlyClose2() {
var count = 0;
makeRequest() {
Socket.connect("127.0.0.1", server.port).then((socket) {
- var data = "GET / HTTP/1.1\r\nContent-Length: 0\r\n\r\n".charCodes;
+ var data = "GET / HTTP/1.1\r\nContent-Length: 0\r\n\r\n".codeUnits;
socket.add(data);
socket.close();
socket.done.then((_) {
« no previous file with comments | « tests/standalone/io/http_read_test.dart ('k') | tests/standalone/io/mime_multipart_parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698