| Index: pkg/analysis_server/benchmark/perf/performance_tests.dart
|
| diff --git a/pkg/analysis_server/benchmark/perf/performance_tests.dart b/pkg/analysis_server/benchmark/perf/performance_tests.dart
|
| index 761c647972b98969faf9fc7da5db1406e0a8f341..62a752cd46e400f70d91bdadaea89f52beb92a6a 100644
|
| --- a/pkg/analysis_server/benchmark/perf/performance_tests.dart
|
| +++ b/pkg/analysis_server/benchmark/perf/performance_tests.dart
|
| @@ -5,6 +5,7 @@
|
| library server.performance;
|
|
|
| import 'dart:async';
|
| +import 'dart:io';
|
|
|
| import 'package:analysis_server/plugin/protocol/protocol.dart';
|
| import 'package:unittest/unittest.dart';
|
| @@ -67,6 +68,13 @@ abstract class AbstractAnalysisServerPerformanceTest
|
| /**
|
| * After every test, the server is stopped.
|
| */
|
| - @override
|
| - Future tearDown() => shutdownIfNeeded();
|
| + Future shutdown() async => await shutdownIfNeeded();
|
| +}
|
| +
|
| +class AbstractTimingTest extends AbstractAnalysisServerPerformanceTest {
|
| + Future init(String source) async {
|
| + await super.setUp();
|
| + sourceDirectory = new Directory(source);
|
| + return subscribeToStatusNotifications();
|
| + }
|
| }
|
|
|