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

Unified Diff: pkg/analyzer_plugin/test/plugin/mocks.dart

Issue 2953093002: Update the plugin API (Closed)
Patch Set: Update FixesRequest Created 3 years, 6 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/analyzer_plugin/test/plugin/mocks.dart
diff --git a/pkg/analyzer_plugin/test/plugin/mocks.dart b/pkg/analyzer_plugin/test/plugin/mocks.dart
index 22191c19edf0083497849aa5c99df60287d4b0f2..7794fb1f586da66bbbea75b088d12437126a1fd5 100644
--- a/pkg/analyzer_plugin/test/plugin/mocks.dart
+++ b/pkg/analyzer_plugin/test/plugin/mocks.dart
@@ -3,9 +3,11 @@
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
+import 'dart:collection';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/src/dart/analysis/driver.dart';
+import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer_plugin/channel/channel.dart';
import 'package:analyzer_plugin/plugin/plugin.dart';
@@ -15,11 +17,13 @@ import 'package:analyzer_plugin/src/protocol/protocol_internal.dart';
import 'package:front_end/src/base/timestamped_data.dart';
import 'package:test/test.dart';
-class MockAnalysisDriver extends AnalysisDriverGeneric {
- /**
- * The files that have been added to this driver.
- */
- List<String> addedFiles = <String>[];
+class MockAnalysisDriver extends AnalysisDriver {
+ @override
+ Set<String> addedFiles = new HashSet<String>();
+
+ MockAnalysisDriver()
+ : super(new AnalysisDriverScheduler(null), null, null, null, null, null,
+ new SourceFactory([]), new AnalysisOptionsImpl());
@override
bool get hasFilesToAnalyze => false;
« no previous file with comments | « pkg/analyzer_plugin/test/plugin/fix_mixin_test.dart ('k') | pkg/analyzer_plugin/test/plugin/navigation_mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698