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

Unified Diff: runtime/observatory/tests/service/metrics_test.dart

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. Created 3 years, 9 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/observatory/tests/service/metrics_test.dart
diff --git a/runtime/observatory/tests/service/metrics_test.dart b/runtime/observatory/tests/service/metrics_test.dart
index d501f0390d02378a1e4facd25a71e6ae7ea02d9a..9e96a93d4432ec5f177cd91e556bee8202e904e8 100644
--- a/runtime/observatory/tests/service/metrics_test.dart
+++ b/runtime/observatory/tests/service/metrics_test.dart
@@ -16,7 +16,6 @@ void script() {
}
var tests = [
-
(Isolate isolate) async {
Map metrics = await isolate.refreshDartMetrics();
expect(metrics.length, equals(1));
@@ -24,26 +23,24 @@ var tests = [
expect(counter.name, equals('a.b.c'));
expect(counter.value, equals(1234.5));
},
-
(Isolate isolate) async {
- var params = { 'metricId': 'metrics/a.b.c' };
+ var params = {'metricId': 'metrics/a.b.c'};
ServiceMetric counter =
- await isolate.invokeRpc('_getIsolateMetric', params);
+ await isolate.invokeRpc('_getIsolateMetric', params);
expect(counter.name, equals('a.b.c'));
expect(counter.value, equals(1234.5));
},
-
(Isolate isolate) async {
bool caughtException;
try {
- await isolate.invokeRpc('_getIsolateMetric',
- { 'metricId': 'metrics/a.b.d' });
- expect(false, isTrue, reason:'Unreachable');
+ await isolate
+ .invokeRpc('_getIsolateMetric', {'metricId': 'metrics/a.b.d'});
+ expect(false, isTrue, reason: 'Unreachable');
} on ServerRpcException catch (e) {
caughtException = true;
expect(e.code, equals(ServerRpcException.kInvalidParams));
expect(e.message,
- "_getIsolateMetric: invalid 'metricId' parameter: metrics/a.b.d");
+ "_getIsolateMetric: invalid 'metricId' parameter: metrics/a.b.d");
}
expect(caughtException, isTrue);
},
« no previous file with comments | « runtime/observatory/tests/service/malformed_test.dart ('k') | runtime/observatory/tests/service/mirror_references_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698