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

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

Issue 12328104: Change new List(n) to return fixed length list. (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
Index: tests/standalone/io/raw_socket_write_destroy_test.dart
diff --git a/tests/standalone/io/raw_socket_write_destroy_test.dart b/tests/standalone/io/raw_socket_write_destroy_test.dart
index b5e558a8433d8130445818577eec07c89ef0a90c..d7dc0d841988d2fdc1462cae4a815b6004189f66 100644
--- a/tests/standalone/io/raw_socket_write_destroy_test.dart
+++ b/tests/standalone/io/raw_socket_write_destroy_test.dart
@@ -18,7 +18,7 @@ void testWriteDestroyServer() {
server.listen((socket) {
socket.writeEventsEnabled = false;
- var buffer = new List.fixedLength(WROTE, fill: 0);
+ var buffer = new List.filled(WROTE, 0);
int offset = 0;
void write() {
int n = socket.write(buffer, offset, buffer.length - offset);
@@ -69,7 +69,7 @@ void testWriteDestroyClient() {
RawSocket.connect(SERVER_ADDRESS, server.port).then((socket) {
socket.writeEventsEnabled = false;
- var buffer = new List.fixedLength(WROTE, fill: 0);
+ var buffer = new List.filled(WROTE, 0);
int offset = 0;
void write() {
int n = socket.write(buffer, offset, buffer.length - offset);
@@ -93,4 +93,4 @@ void testWriteDestroyClient() {
void main() {
testWriteDestroyServer();
testWriteDestroyClient();
-}
+}

Powered by Google App Engine
This is Rietveld 408576698