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

Unified Diff: runtime/bin/vmservice/observatory/test/vm_metrics_test.dart

Issue 457803002: Initial UI for Metrics in Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/observatory/test/metrics_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/observatory/test/vm_metrics_test.dart
diff --git a/runtime/bin/vmservice/observatory/test/vm_metrics_test.dart b/runtime/bin/vmservice/observatory/test/vm_metrics_test.dart
index 349f212d8a19ab188cbed60a3608ff84d9587ab8..c227813b2822fd1eb2463e04d761f6bf777ad356 100644
--- a/runtime/bin/vmservice/observatory/test/vm_metrics_test.dart
+++ b/runtime/bin/vmservice/observatory/test/vm_metrics_test.dart
@@ -19,14 +19,14 @@ var tests = [
expect(members, isList);
expect(members.length, greaterThan(1));
var foundOldHeapCapacity = members.any((m) =>
- m['name'] == 'heap.old.capacity');
+ m.name == 'heap.old.capacity');
expect(foundOldHeapCapacity, equals(true));
}),
(Isolate isolate) =>
isolate.get('metrics/vm/heap.old.used').then((ServiceMap counter) {
- expect(counter['type'], equals('Counter'));
- expect(counter['name'], equals('heap.old.used'));
+ expect(counter.serviceType, equals('Counter'));
+ expect(counter.name, equals('heap.old.used'));
}),
(Isolate isolate) =>
« no previous file with comments | « runtime/bin/vmservice/observatory/test/metrics_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698