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

Unified Diff: runtime/observatory/test/metrics_test.dart

Issue 892913003: Rename the get* methods in preparation for removing them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: one more test 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
« no previous file with comments | « runtime/observatory/test/functions_test.dart ('k') | runtime/observatory/test/test_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/test/metrics_test.dart
diff --git a/runtime/observatory/test/metrics_test.dart b/runtime/observatory/test/metrics_test.dart
index 8ea13a8d9ab428be360e46aeeab80158b18a864f..9a72e23a95fd6729e8db2497ae88e12523a242cf 100644
--- a/runtime/observatory/test/metrics_test.dart
+++ b/runtime/observatory/test/metrics_test.dart
@@ -17,7 +17,7 @@ void script() {
var tests = [
(Isolate isolate) =>
- isolate.get('metrics').then((ServiceMap metrics) {
+ isolate.getDeprecated('metrics').then((ServiceMap metrics) {
expect(metrics['type'], equals('MetricList'));
var members = metrics['members'];
expect(members, isList);
@@ -28,13 +28,13 @@ var tests = [
}),
(Isolate isolate) =>
- isolate.get('metrics/a.b.c').then((ServiceMetric counter) {
+ isolate.getDeprecated('metrics/a.b.c').then((ServiceMetric counter) {
expect(counter.name, equals('a.b.c'));
expect(counter.value, equals(1234.5));
}),
(Isolate isolate) =>
- isolate.get('metrics/a.b.d').then((DartError err) {
+ isolate.getDeprecated('metrics/a.b.d').then((DartError err) {
expect(err is DartError, isTrue);
}),
« no previous file with comments | « runtime/observatory/test/functions_test.dart ('k') | runtime/observatory/test/test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698