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

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

Issue 2542853003: Create summary files in MockSdk classes (Closed)
Patch Set: Created 4 years 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/analysis_server_test.dart
diff --git a/pkg/analysis_server/test/analysis_server_test.dart b/pkg/analysis_server/test/analysis_server_test.dart
index a76d57bc6a137614ea34b1eda7c8cefe26595b50..b6a9475b00e59c7994abe082345d1ef310766089 100644
--- a/pkg/analysis_server/test/analysis_server_test.dart
+++ b/pkg/analysis_server/test/analysis_server_test.dart
@@ -121,20 +121,19 @@ import "../foo/foo.dart";
});
}
- void processRequiredPlugins() {
+ void processRequiredPlugins(ServerPlugin serverPlugin) {
List<Plugin> plugins = <Plugin>[];
plugins.addAll(AnalysisEngine.instance.requiredPlugins);
plugins.add(AnalysisEngine.instance.optionsPlugin);
- plugins.add(server.serverPlugin);
+ plugins.add(serverPlugin);
ExtensionManager manager = new ExtensionManager();
manager.processPlugins(plugins);
}
void setUp() {
- ExtensionManager manager = new ExtensionManager();
- ServerPlugin plugin = new ServerPlugin();
- manager.processPlugins([plugin]);
+ ServerPlugin serverPlugin = new ServerPlugin();
+ processRequiredPlugins(serverPlugin);
channel = new MockServerChannel();
resourceProvider = new MemoryResourceProvider();
// Create an SDK in the mock file system.
@@ -145,12 +144,11 @@ import "../foo/foo.dart";
resourceProvider,
packageMapProvider,
null,
- plugin,
+ serverPlugin,
new AnalysisServerOptions(),
new DartSdkManager('/', false),
InstrumentationService.NULL_SERVICE,
rethrowExceptions: true);
- processRequiredPlugins();
}
Future test_contextDisposed() {
« no previous file with comments | « no previous file | pkg/analysis_server/test/domain_analysis_test.dart » ('j') | pkg/analysis_server/test/mock_sdk.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698