Index: runtime/observatory/test/vm_metrics_test.dart |
diff --git a/runtime/observatory/test/vm_metrics_test.dart b/runtime/observatory/test/vm_metrics_test.dart |
deleted file mode 100644 |
index ef5f34248c684aa1f5efb84d5fff353d3856c734..0000000000000000000000000000000000000000 |
--- a/runtime/observatory/test/vm_metrics_test.dart |
+++ /dev/null |
@@ -1,39 +0,0 @@ |
-import 'package:observatory/service_io.dart'; |
-import 'package:unittest/unittest.dart'; |
-import 'test_helper.dart'; |
- |
-import 'dart:profiler'; |
- |
-void script() { |
- var counter = new Counter('a.b.c', 'description'); |
- Metrics.register(counter); |
- counter.value = 1234.5; |
-} |
- |
-var tests = [ |
- |
-(Isolate isolate) => |
- isolate.getDeprecated('metrics/vm').then((ServiceMap metrics) { |
- expect(metrics['type'], equals('MetricList')); |
- var members = metrics['members']; |
- expect(members, isList); |
- expect(members.length, greaterThan(1)); |
- var foundOldHeapCapacity = members.any((m) => |
- m.name == 'heap.old.capacity'); |
- expect(foundOldHeapCapacity, equals(true)); |
-}), |
- |
-(Isolate isolate) => |
- isolate.getDeprecated('metrics/vm/heap.old.used').then((ServiceMetric counter) { |
- expect(counter.type, equals('Counter')); |
- expect(counter.name, equals('heap.old.used')); |
-}), |
- |
-(Isolate isolate) => |
- isolate.getDeprecated('metrics/vm/doesnotexist').then((DartError err) { |
- expect(err is DartError, isTrue); |
-}), |
- |
-]; |
- |
-main(args) => runIsolateTests(args, tests, testeeBefore: script); |