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

Side by Side Diff: runtime/observatory/tests/service/get_ports_rpc_test.dart

Issue 1217823009: Make VM event streams look like real dart streams. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge with master Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=--compile-all --error_on_bad_type --error_on_bad_override 4 // VMOptions=--compile-all --error_on_bad_type --error_on_bad_override
5 5
6 library get_ports_rpc_test; 6 library get_ports_rpc_test;
7 7
8 import 'dart:async';
9 import 'dart:isolate' hide Isolate; 8 import 'dart:isolate' hide Isolate;
10 import 'package:observatory/service_io.dart'; 9 import 'package:observatory/service_io.dart';
11 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
12 11
13 import 'test_helper.dart'; 12 import 'test_helper.dart';
14 13
15 var port1; 14 var port1;
16 var port2; 15 var port2;
17 16
18 void warmup() { 17 void warmup() {
(...skipping 28 matching lines...) Expand all
47 var ports = result['ports']; 46 var ports = result['ports'];
48 // There are three ports: the two created in warmup and the stdin listener 47 // There are three ports: the two created in warmup and the stdin listener
49 // created by the test harness. 48 // created by the test harness.
50 expect(ports.length, equals(3)); 49 expect(ports.length, equals(3));
51 expect(countHandlerMatches(ports, nullMatcher), equals(1)); 50 expect(countHandlerMatches(ports, nullMatcher), equals(1));
52 expect(countHandlerMatches(ports, closureMatcher), equals(2)); 51 expect(countHandlerMatches(ports, closureMatcher), equals(2));
53 }, 52 },
54 ]; 53 ];
55 54
56 main(args) async => runIsolateTests(args, tests, testeeBefore:warmup); 55 main(args) async => runIsolateTests(args, tests, testeeBefore:warmup);
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/gc_test.dart ('k') | runtime/observatory/tests/service/isolate_lifecycle_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698