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

Unified Diff: runtime/observatory/tests/service/isolate_lifecycle_test.dart

Issue 1143783003: Add the streamListen and streamCancel rpcs to the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: before commit Created 5 years, 7 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: runtime/observatory/tests/service/isolate_lifecycle_test.dart
diff --git a/runtime/observatory/tests/service/isolate_lifecycle_test.dart b/runtime/observatory/tests/service/isolate_lifecycle_test.dart
index be878a222ca6b9aa714ae88f93bdca806ef724e1..f8b2f97641c5ecd0712a0e6180e1dd175981ef06 100644
--- a/runtime/observatory/tests/service/isolate_lifecycle_test.dart
+++ b/runtime/observatory/tests/service/isolate_lifecycle_test.dart
@@ -54,7 +54,8 @@ var tests = [
(VM vm) async {
// Wait for the testee to start all of the isolates.
if (vm.isolates.length != spawnCount + 1) {
- await processServiceEvents(vm, (event, sub, completer) {
+ await processServiceEvents(vm, VM.kIsolateEventStreamId,
+ (event, sub, completer) {
if (event.eventType == ServiceEvent.kIsolateStart) {
if (vm.isolates.length == spawnCount + 1) {
sub.cancel();
@@ -76,7 +77,8 @@ var tests = [
(VM vm) async {
// Wait for all spawned isolates to hit pause-at-exit.
if (numPaused(vm) != spawnCount) {
- await processServiceEvents(vm, (event, sub, completer) {
+ await processServiceEvents(vm, VM.kDebugEventStreamId,
+ (event, sub, completer) {
if (event.eventType == ServiceEvent.kPauseExit) {
if (numPaused(vm) == spawnCount) {
sub.cancel();
@@ -92,7 +94,8 @@ var tests = [
(VM vm) async {
var resumedReceived = 0;
- var eventsDone = processServiceEvents(vm, (event, sub, completer) {
+ var eventsDone = processServiceEvents(vm, VM.kIsolateEventStreamId,
+ (event, sub, completer) {
if (event.eventType == ServiceEvent.kIsolateExit) {
resumedReceived++;
if (resumedReceived == resumeCount) {
« no previous file with comments | « runtime/observatory/tests/service/graph_test.dart ('k') | runtime/observatory/tests/service/source_location_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698