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

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

Issue 24075002: Expose field data, use class id, and merge all collections into "objects" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 4
5 library isolate_class_test; 5 library isolate_class_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 10
11 class CodeATest extends VmServiceRequestHelper { 11 class CodeATest extends VmServiceRequestHelper {
12 CodeATest(port, id, codeId) : 12 CodeATest(port, id, codeId) :
13 super('http://127.0.0.1:$port/isolates/$id/codes/$codeId'); 13 super('http://127.0.0.1:$port/isolates/$id/objects/$codeId');
14 14
15 onRequestCompleted(Map reply) { 15 onRequestCompleted(Map reply) {
16 Expect.equals('Code', reply['type']); 16 Expect.equals('Code', reply['type']);
17 Expect.equals('a', reply['function']['name']); 17 Expect.equals('a', reply['function']['name']);
18 Expect.isTrue(reply['disassembly'].length > 0); 18 Expect.isTrue(reply['disassembly'].length > 0);
19 } 19 }
20 } 20 }
21 21
22 class CodeCTest extends VmServiceRequestHelper { 22 class CodeCTest extends VmServiceRequestHelper {
23 CodeCTest(port, id, codeId) : 23 CodeCTest(port, id, codeId) :
24 super('http://127.0.0.1:$port/isolates/$id/codes/$codeId'); 24 super('http://127.0.0.1:$port/isolates/$id/objects/$codeId');
25 25
26 onRequestCompleted(Map reply) { 26 onRequestCompleted(Map reply) {
27 Expect.equals('Code', reply['type']); 27 Expect.equals('Code', reply['type']);
28 Expect.equals('C.c', reply['function']['name']); 28 Expect.equals('C.c', reply['function']['user_name']);
29 Expect.isTrue(reply['disassembly'].length > 0); 29 Expect.isTrue(reply['disassembly'].length > 0);
30 } 30 }
31 } 31 }
32 32
33 class StackTraceTest extends VmServiceRequestHelper { 33 class StackTraceTest extends VmServiceRequestHelper {
34 StackTraceTest(port, id) : 34 StackTraceTest(port, id) :
35 super('http://127.0.0.1:$port/isolates/$id/stacktrace'); 35 super('http://127.0.0.1:$port/isolates/$id/stacktrace');
36 36
37 int _aId; 37 int _aId;
38 int _cId; 38 int _cId;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 stackTraceTest._cId); 72 stackTraceTest._cId);
73 var requests = Future.wait([codeATest.makeRequest(), 73 var requests = Future.wait([codeATest.makeRequest(),
74 codeCTest.makeRequest()]); 74 codeCTest.makeRequest()]);
75 requests.then((_) { 75 requests.then((_) {
76 process.requestExit(); 76 process.requestExit();
77 }); 77 });
78 }); 78 });
79 }); 79 });
80 }); 80 });
81 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698