[dart2js_runtime_metrics] Update pubspec to 3.7 and reformat.
Change-Id: Ia1e81df8120f02d5d26297a84ef1e5e8f110d040
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/400740
Reviewed-by: Nate Biggs <natebiggs@google.com>
Auto-Submit: Mayank Patke <fishythefish@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
diff --git a/pkg/dart2js_runtime_metrics/pubspec.yaml b/pkg/dart2js_runtime_metrics/pubspec.yaml
index 57a2179..5f72158 100644
--- a/pkg/dart2js_runtime_metrics/pubspec.yaml
+++ b/pkg/dart2js_runtime_metrics/pubspec.yaml
@@ -7,9 +7,7 @@
This library provides access to the measurements at runtime.
environment:
- # Restrict the upper bound so that we can remove support for this in
- # a later version of the SDK without it being a breaking change.
- sdk: ">=2.14.0 <2.15.0"
+ sdk: "^3.7.0-0"
# Use 'any' constraints here; we get our versions from the DEPS file.
dev_dependencies:
diff --git a/pkg/dart2js_runtime_metrics/test/runtime_metrics_test.dart b/pkg/dart2js_runtime_metrics/test/runtime_metrics_test.dart
index 2e26125..a670bc9 100644
--- a/pkg/dart2js_runtime_metrics/test/runtime_metrics_test.dart
+++ b/pkg/dart2js_runtime_metrics/test/runtime_metrics_test.dart
@@ -27,8 +27,11 @@
}
Expect.isTrue(metrics.containsKey('runtime'), "Has 'runtime' key: $metrics");
- Expect.equals(expectedRuntime, metrics['runtime'],
- "Expected 'runtime: $expectedRuntime': $metrics");
+ Expect.equals(
+ expectedRuntime,
+ metrics['runtime'],
+ "Expected 'runtime: $expectedRuntime': $metrics",
+ );
if (expectedRuntime == 'dart2js') {
Expect.isTrue(metrics.containsKey('allocations'));
diff --git a/pkg/dart2js_runtime_metrics/test/startup_metrics_test.dart b/pkg/dart2js_runtime_metrics/test/startup_metrics_test.dart
index 4e1e0fb..9dd6924 100644
--- a/pkg/dart2js_runtime_metrics/test/startup_metrics_test.dart
+++ b/pkg/dart2js_runtime_metrics/test/startup_metrics_test.dart
@@ -27,8 +27,11 @@
}
Expect.isTrue(metrics.containsKey('runtime'), "Has 'runtime' key: $metrics");
- Expect.equals(expectedRuntime, metrics['runtime'],
- "Expected 'runtime: $expectedRuntime': $metrics");
+ Expect.equals(
+ expectedRuntime,
+ metrics['runtime'],
+ "Expected 'runtime: $expectedRuntime': $metrics",
+ );
if (expectedRuntime == 'dart2js') {
Expect.isTrue(metrics.containsKey('callMainMs'));