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

Side by Side Diff: tests/standalone/vmservice/multiple_isolate_list_test.dart

Issue 19870006: Support stacktrace and objecthistogram service commands (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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=--short_socket_read
5 // VMOptions=--short_socket_write
6 // VMOptions=--short_socket_read --short_socket_write
7 //
8 // Test:
9 // *) Connect to VM Service and obtain list of running isolates.
10 4
11 library multiple_isolate_list_test; 5 library multiple_isolate_list_test;
12 6
13 import 'test_helper.dart'; 7 import 'test_helper.dart';
14 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
15 9
16 class MultipleIsolateListTest extends VmServiceRequestHelper { 10 class MultipleIsolateListTest extends VmServiceRequestHelper {
17 MultipleIsolateListTest(port) : super('http://127.0.0.1:$port/isolates'); 11 MultipleIsolateListTest(port) : super('http://127.0.0.1:$port/isolates');
18 12
19 onRequestCompleted(Map reply) { 13 onRequestCompleted(Map reply) {
20 IsolateListTester tester = new IsolateListTester(reply); 14 IsolateListTester tester = new IsolateListTester(reply);
21 tester.checkIsolateCount(2); 15 tester.checkIsolateCount(2);
22 tester.checkIsolateNameContains('multiple_isolate_list_script.dart'); 16 tester.checkIsolateNameContains('multiple_isolate_list_script.dart');
23 tester.checkIsolateNameContains('myIsolateName'); 17 tester.checkIsolateNameContains('myIsolateName');
24 } 18 }
25 } 19 }
26 20
27 main() { 21 main() {
28 var process = new TestLauncher('multiple_isolate_list_script.dart'); 22 var process = new TestLauncher('multiple_isolate_list_script.dart');
29 process.launch().then((port) { 23 process.launch().then((port) {
30 var test = new MultipleIsolateListTest(port); 24 var test = new MultipleIsolateListTest(port);
31 test.makeRequest().then((_) { 25 test.makeRequest().then((_) {
32 process.requestExit(); 26 process.requestExit();
33 }); 27 });
34 }); 28 });
35 } 29 }
OLDNEW
« no previous file with comments | « tests/standalone/vmservice/isolate_stacktrace_command_test.dart ('k') | tests/standalone/vmservice/test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698