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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 years, 9 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/gc_test.dart
diff --git a/runtime/observatory/tests/service/gc_test.dart b/runtime/observatory/tests/service/gc_test.dart
index c21c85834c0d5800eabd41ac0791f060dfaddf42..7f1c402e1149cd75a6ff570a565b7712e16e5e84 100644
--- a/runtime/observatory/tests/service/gc_test.dart
+++ b/runtime/observatory/tests/service/gc_test.dart
@@ -21,25 +21,23 @@ void script() {
}
var tests = [
-
-(Isolate isolate) {
- Completer completer = new Completer();
- // Expect at least this many GC events.
- int gcCountdown = 3;
- isolate.vm.getEventStream(VM.kGCStream).then((stream) {
- var subscription;
- subscription = stream.listen((ServiceEvent event) {
- assert(event.kind == ServiceEvent.kGC);
- print('Received GC event');
- if (--gcCountdown == 0) {
- subscription.cancel();
- completer.complete();
- }
+ (Isolate isolate) {
+ Completer completer = new Completer();
+ // Expect at least this many GC events.
+ int gcCountdown = 3;
+ isolate.vm.getEventStream(VM.kGCStream).then((stream) {
+ var subscription;
+ subscription = stream.listen((ServiceEvent event) {
+ assert(event.kind == ServiceEvent.kGC);
+ print('Received GC event');
+ if (--gcCountdown == 0) {
+ subscription.cancel();
+ completer.complete();
+ }
+ });
});
- });
- return completer.future;
-},
-
+ return completer.future;
+ },
];
main(args) => runIsolateTests(args, tests, testeeConcurrent: script);

Powered by Google App Engine
This is Rietveld 408576698