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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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 7f1c402e1149cd75a6ff570a565b7712e16e5e84..c21c85834c0d5800eabd41ac0791f060dfaddf42 100644
--- a/runtime/observatory/tests/service/gc_test.dart
+++ b/runtime/observatory/tests/service/gc_test.dart
@@ -21,23 +21,25 @@ 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