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

Unified Diff: tests/standalone/src/EchoServerStreamTest.dart

Issue 9500002: Rename blahHandler to onBlah throughout dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 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/src/DirectoryTest.dart ('k') | tests/standalone/src/EchoServerTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/EchoServerStreamTest.dart
diff --git a/tests/standalone/src/EchoServerStreamTest.dart b/tests/standalone/src/EchoServerStreamTest.dart
index 6f47b0507e5d931f3a91e2e511d97ce42c35cd54..e84f19a84a48b5a677d3cd7fef2954f9b9d7d357 100644
--- a/tests/standalone/src/EchoServerStreamTest.dart
+++ b/tests/standalone/src/EchoServerStreamTest.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
@@ -49,7 +49,7 @@ class EchoServerGame {
int offset = 0;
List<int> data;
- void onClose() {
+ void onClosed() {
Expect.equals(MSGSIZE, offset);
_messages++;
if (_messages < MESSAGES) {
@@ -79,11 +79,11 @@ class EchoServerGame {
}
if (_messages % 2 == 0) data = new List<int>(MSGSIZE);
- inputStream.dataHandler = onData;
- inputStream.closeHandler = onClose;
+ inputStream.onData = onData;
+ inputStream.onClosed = onClosed;
}
- _socket.errorHandler = errorHandler;
+ _socket.onError = errorHandler;
// Test both write and writeFrom in different forms.
switch (_messages % 4) {
@@ -108,7 +108,7 @@ class EchoServerGame {
_socket = new Socket(TestingServer.HOST, _port);
if (_socket !== null) {
- _socket.connectHandler = connectHandler;
+ _socket.onConnect = connectHandler;
} else {
Expect.fail("socket creation failed");
}
@@ -167,8 +167,8 @@ class EchoServer extends TestingServer {
}
inputStream = connection.inputStream;
- inputStream.dataHandler = dataReceived;
- connection.errorHandler = errorHandler;
+ inputStream.onData = dataReceived;
+ connection.onError = errorHandler;
}
}
« no previous file with comments | « tests/standalone/src/DirectoryTest.dart ('k') | tests/standalone/src/EchoServerTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698