Index: runtime/observatory/tests/service/test_helper.dart |
diff --git a/runtime/observatory/tests/service/test_helper.dart b/runtime/observatory/tests/service/test_helper.dart |
index 6da69becfc01f52b5f273e55768acc87ae72a345..20d140651c46001180a118370bc1b28089df49c4 100644 |
--- a/runtime/observatory/tests/service/test_helper.dart |
+++ b/runtime/observatory/tests/service/test_helper.dart |
@@ -138,10 +138,12 @@ typedef void ServiceEventHandler(ServiceEvent event, |
StreamSubscription subscription, |
Completer completer); |
-Future processServiceEvents(VM vm, ServiceEventHandler handler) { |
+Future processServiceEvents(VM vm, |
+ String streamId, |
+ ServiceEventHandler handler) { |
Completer completer = new Completer(); |
var subscription; |
- subscription = vm.events.stream.listen((ServiceEvent event) { |
+ subscription = vm.getEventStream(streamId).listen((ServiceEvent event) { |
handler(event, subscription, completer); |
}); |
return completer.future; |
@@ -159,7 +161,7 @@ Future<Isolate> hasStoppedAtBreakpoint(Isolate isolate) { |
// Set up a listener to wait for breakpoint events. |
Completer completer = new Completer(); |
var subscription; |
- subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
+ subscription = isolate.vm.debugEvents.listen((ServiceEvent event) { |
if (event.eventType == ServiceEvent.kPauseBreakpoint) { |
print('Breakpoint reached'); |
subscription.cancel(); |