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

Unified Diff: tests/isolate/global_error_handler_stream_test.dart

Issue 14150002: Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « sdk/lib/isolate/isolate_stream.dart ('k') | tests/standalone/io/dart_std_io_pipe_script.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/global_error_handler_stream_test.dart
diff --git a/tests/isolate/global_error_handler_stream_test.dart b/tests/isolate/global_error_handler_stream_test.dart
index 5c094872b0f6936228625f5de89dd505dba68696..4fcd8bf043a94a5a72e76009a3900c3f35e2e85b 100644
--- a/tests/isolate/global_error_handler_stream_test.dart
+++ b/tests/isolate/global_error_handler_stream_test.dart
@@ -19,7 +19,7 @@ void runFunctions() {
}
}
-void startTest(StreamSink finishSink) {
+void startTest(EventSink finishSink) {
firstFunction = () { throw new RuntimeError("ignore exception"); };
finishFunction = () { finishSink.add("done"); finishSink.close(); };
new Timer(Duration.ZERO, runFunctions);
@@ -36,7 +36,7 @@ bool globalErrorHandler(IsolateUnhandledException e) {
main() {
var box = new MessageBox();
var timer;
- StreamSink otherIsolate = streamSpawnFunction(runTest, globalErrorHandler);
+ EventSink otherIsolate = streamSpawnFunction(runTest, globalErrorHandler);
otherIsolate.add(box.sink);
otherIsolate.close();
box.stream.single.then((msg) {
« no previous file with comments | « sdk/lib/isolate/isolate_stream.dart ('k') | tests/standalone/io/dart_std_io_pipe_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698