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

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

Issue 837723004: Build Observatory as part of runtime (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
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
deleted file mode 100644
index 9a99f093b94310dedb3adc4c6ced325c7c82fdc1..0000000000000000000000000000000000000000
--- a/runtime/bin/vmservice/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.get('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.get('metrics/vm/heap.old.used').then((ServiceMetric counter) {
- expect(counter.type, equals('Counter'));
- expect(counter.name, equals('heap.old.used'));
-}),
-
-(Isolate isolate) =>
- isolate.get('metrics/vm/doesnotexist').then((DartError err) {
- expect(err is DartError, isTrue);
-}),
-
-];
-
-main(args) => runIsolateTests(args, tests, testeeBefore: script);
« no previous file with comments | « runtime/bin/vmservice/observatory/test/test_helper.dart ('k') | runtime/bin/vmservice/observatory/test/vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698