Index: pkg/analysis_server/test/domain_analysis_test.dart |
diff --git a/pkg/analysis_server/test/domain_analysis_test.dart b/pkg/analysis_server/test/domain_analysis_test.dart |
index 881315a1b24bcf8e0e01254b268c8034a3106f74..79411903ea9d63432d5a227b7932b165482a9c2c 100644 |
--- a/pkg/analysis_server/test/domain_analysis_test.dart |
+++ b/pkg/analysis_server/test/domain_analysis_test.dart |
@@ -9,10 +9,12 @@ import 'dart:async'; |
import 'package:analysis_server/src/analysis_server.dart'; |
import 'package:analysis_server/src/constants.dart'; |
import 'package:analysis_server/src/domain_analysis.dart'; |
+import 'package:analysis_server/src/plugin/server_plugin.dart'; |
import 'package:analysis_server/src/protocol.dart'; |
import 'package:analyzer/file_system/memory_file_system.dart'; |
import 'package:analyzer/instrumentation/instrumentation.dart'; |
import 'package:path/path.dart'; |
+import 'package:plugin/manager.dart'; |
import 'package:test_reflective_loader/test_reflective_loader.dart'; |
import 'package:unittest/unittest.dart'; |
@@ -34,9 +36,13 @@ main() { |
setUp(() { |
serverChannel = new MockServerChannel(); |
resourceProvider = new MemoryResourceProvider(); |
+ ExtensionManager manager = new ExtensionManager(); |
+ ServerPlugin serverPlugin = new ServerPlugin(); |
+ manager.processPlugins([serverPlugin]); |
server = new AnalysisServer(serverChannel, resourceProvider, |
- new MockPackageMapProvider(), null, new AnalysisServerOptions(), |
- new MockSdk(), InstrumentationService.NULL_SERVICE); |
+ new MockPackageMapProvider(), null, serverPlugin, |
+ new AnalysisServerOptions(), new MockSdk(), |
+ InstrumentationService.NULL_SERVICE); |
handler = new AnalysisDomainHandler(server); |
}); |
@@ -360,9 +366,13 @@ class AnalysisTestHelper { |
AnalysisTestHelper() { |
serverChannel = new MockServerChannel(); |
resourceProvider = new MemoryResourceProvider(); |
+ ExtensionManager manager = new ExtensionManager(); |
+ ServerPlugin serverPlugin = new ServerPlugin(); |
+ manager.processPlugins([serverPlugin]); |
server = new AnalysisServer(serverChannel, resourceProvider, |
- new MockPackageMapProvider(), null, new AnalysisServerOptions(), |
- new MockSdk(), InstrumentationService.NULL_SERVICE); |
+ new MockPackageMapProvider(), null, serverPlugin, |
+ new AnalysisServerOptions(), new MockSdk(), |
+ InstrumentationService.NULL_SERVICE); |
handler = new AnalysisDomainHandler(server); |
// listen for notifications |
Stream<Notification> notificationStream = |