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

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

Issue 823403004: Begin migrating the vm service from a rest-style interface to a json-rpc style interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove old-style standalone tests. Created 5 years, 10 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) 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 Class fooClass = lib.classes.first; 89 Class fooClass = lib.classes.first;
90 fooId = fooClass.vmCid; 90 fooId = fooClass.vmCid;
91 isolate.get('graph'); 91 isolate.invokeRpcNoUpgrade('requestHeapSnapshot', {});
92 return completer.future; 92 return completer.future;
93 }); 93 });
94 }, 94 },
95 95
96 ]; 96 ];
97 97
98 main(args) => runIsolateTests(args, tests, testeeBefore: script); 98 main(args) => runIsolateTests(args, tests, testeeBefore: script);
OLDNEW
« no previous file with comments | « runtime/observatory/test/eval_test.dart ('k') | runtime/observatory/test/inbound_references_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698