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

Side by Side Diff: runtime/bin/vmservice/observatory/test/graph_test.dart

Issue 779103003: Fix bugs in heapmap, binary payloads, 'address' request. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/elements/heap_map.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'package:observatory/object_graph.dart'; 6 import 'package:observatory/object_graph.dart';
7 import 'package:observatory/service_io.dart'; 7 import 'package:observatory/service_io.dart';
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 import 'test_helper.dart'; 9 import 'test_helper.dart';
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Check that the short list retains more than the long list inside. 79 // Check that the short list retains more than the long list inside.
80 expect(first.succ.length, equals(2 + second.succ.length)); 80 expect(first.succ.length, equals(2 + second.succ.length));
81 // ... and specifically, that it retains exactly itself + the long one. 81 // ... and specifically, that it retains exactly itself + the long one.
82 expect(first.retainedSize, 82 expect(first.retainedSize,
83 equals(first.shallowSize + second.shallowSize)); 83 equals(first.shallowSize + second.shallowSize));
84 completer.complete(); 84 completer.complete();
85 } 85 }
86 }); 86 });
87 return isolate.rootLib.load().then((Library lib) { 87 return isolate.rootLib.load().then((Library lib) {
88 expect(lib.classes.length, equals(1)); 88 expect(lib.classes.length, equals(1));
89 // TODO(koda): Use vmCid.
90 Class fooClass = lib.classes.first; 89 Class fooClass = lib.classes.first;
91 String prefix = "classes/"; 90 fooId = fooClass.vmCid;
92 // TODO(koda): Add method on Class to get numerical id.
93 fooId = int.parse(fooClass.id.substring(prefix.length));
94 isolate.get('graph'); 91 isolate.get('graph');
95 return completer.future; 92 return completer.future;
96 }); 93 });
97 }, 94 },
98 95
99 ]; 96 ];
100 97
101 main(args) => runIsolateTests(args, tests, testeeBefore: script); 98 main(args) => runIsolateTests(args, tests, testeeBefore: script);
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/elements/heap_map.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698