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

Unified Diff: pkg/analysis_server/test/services/completion/optype_test.dart

Issue 1487953002: Clean-up the registration of plugins (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/services/completion/optype_test.dart
diff --git a/pkg/analysis_server/test/services/completion/optype_test.dart b/pkg/analysis_server/test/services/completion/optype_test.dart
index 94b5dafe2c1cc204d83cb2a7038d7ac0f2e8f566..9f2ce434c19d8ee7c3957d0e5384c1c4db57a4ce 100644
--- a/pkg/analysis_server/test/services/completion/optype_test.dart
+++ b/pkg/analysis_server/test/services/completion/optype_test.dart
@@ -14,6 +14,8 @@ import 'package:unittest/unittest.dart';
import '../../abstract_context.dart';
import '../../utils.dart';
+import 'package:plugin/plugin.dart';
+import 'package:plugin/manager.dart';
main() {
initializeTestEnvironment();
@@ -24,6 +26,16 @@ main() {
class OpTypeTest {
OpType visitor;
+ void processRequiredPlugins() {
+ ExtensionManager manager = new ExtensionManager();
+ manager.processPlugins(AnalysisEngine.instance.requiredPlugins);
+ }
+
+ @override
+ void setUp() {
+ processRequiredPlugins();
+ }
+
void addTestSource(String content, {bool resolved: false}) {
int offset = content.indexOf('^');
expect(offset, isNot(equals(-1)), reason: 'missing ^');
« no previous file with comments | « pkg/analysis_server/test/domain_diagnostic_test.dart ('k') | pkg/analysis_server/test/services/correction/assist_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698