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

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

Issue 1153193006: Standardize on using "kind" to distinguish sub-varieties of a type. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: doc changes 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
« no previous file with comments | « runtime/observatory/tests/service/steal_breakpoint_test.dart ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fed6ee1c609f27016a11ab13f2b4920fb407a5e0..96828ae0f5edcfe4a192a49627b19e16c1591af8 100644
--- a/runtime/observatory/tests/service/test_helper.dart
+++ b/runtime/observatory/tests/service/test_helper.dart
@@ -153,7 +153,7 @@ Future processServiceEvents(VM vm, ServiceEventHandler handler) {
Future<Isolate> hasStoppedAtBreakpoint(Isolate isolate) {
if ((isolate.pauseEvent != null) &&
- (isolate.pauseEvent.eventType == ServiceEvent.kPauseBreakpoint)) {
+ (isolate.pauseEvent.kind == ServiceEvent.kPauseBreakpoint)) {
// Already waiting at a breakpoint.
print('Breakpoint reached');
return new Future.value(isolate);
@@ -163,7 +163,7 @@ Future<Isolate> hasStoppedAtBreakpoint(Isolate isolate) {
Completer completer = new Completer();
var subscription;
subscription = isolate.vm.events.stream.listen((ServiceEvent event) {
- if (event.eventType == ServiceEvent.kPauseBreakpoint) {
+ if (event.kind == ServiceEvent.kPauseBreakpoint) {
print('Breakpoint reached');
subscription.cancel();
completer.complete(isolate);
« no previous file with comments | « runtime/observatory/tests/service/steal_breakpoint_test.dart ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698