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

Unified Diff: pkg/analysis_server/test/timing/timing_framework.dart

Issue 1842063003: Start making server strong mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove unintended change Created 4 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: pkg/analysis_server/test/timing/timing_framework.dart
diff --git a/pkg/analysis_server/test/timing/timing_framework.dart b/pkg/analysis_server/test/timing/timing_framework.dart
index cdf24fe351252ca7aaa5bf2d784a2a5e5a05666d..8861f9487a1f3e0a9cd348983acb5b2cc1c82a70 100644
--- a/pkg/analysis_server/test/timing/timing_framework.dart
+++ b/pkg/analysis_server/test/timing/timing_framework.dart
@@ -224,17 +224,13 @@ abstract class TimingTest extends IntegrationTestMixin {
* number of milliseconds required to perform the operation the specified
* number of times.
*/
- Future<TimingResult> run() {
+ Future<TimingResult> run() async {
List<int> times = new List<int>();
- return oneTimeSetUp().then((_) {
- return _repeat(warmupCount, null).then((_) {
- return _repeat(timingCount, times).then((_) {
- return oneTimeTearDown().then((_) {
- return new Future.value(new TimingResult(times));
- });
- });
- });
- });
+ await oneTimeSetUp();
+ await _repeat(warmupCount, null);
+ await _repeat(timingCount, times);
+ await oneTimeTearDown();
+ return new Future<TimingResult>.value(new TimingResult(times));
}
/**

Powered by Google App Engine
This is Rietveld 408576698