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

Unified Diff: pkg/analysis_server/test/domain_analysis_test.dart

Issue 1152013002: Add support for specifying files needing analysis (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/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 =
« no previous file with comments | « pkg/analysis_server/test/context_manager_test.dart ('k') | pkg/analysis_server/test/domain_completion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698