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

Unified Diff: pkg/analysis_server/test/src/plugin/plugin_manager_test.dart

Issue 2946313003: Restore partial analysis of analysis options files (Closed)
Patch Set: 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/analysis_server/test/src/plugin/plugin_manager_test.dart
diff --git a/pkg/analysis_server/test/src/plugin/plugin_manager_test.dart b/pkg/analysis_server/test/src/plugin/plugin_manager_test.dart
index 2fd7c361855ce5f9c71708753f9a9cd7a8c62ad4..d5ca2deb0a24f2993d570ef62d60eddde52c97f3 100644
--- a/pkg/analysis_server/test/src/plugin/plugin_manager_test.dart
+++ b/pkg/analysis_server/test/src/plugin/plugin_manager_test.dart
@@ -670,6 +670,9 @@ class MinimalPlugin extends ServerPlugin {
class TestNotificationManager implements NotificationManager {
List<Notification> notifications = <Notification>[];
+ Map<String, Map<String, List<AnalysisError>>> recordedErrors =
+ <String, Map<String, List<AnalysisError>>>{};
+
@override
void handlePluginNotification(String pluginId, Notification notification) {
notifications.add(notification);
@@ -679,6 +682,13 @@ class TestNotificationManager implements NotificationManager {
noSuchMethod(Invocation invocation) {
fail('Unexpected invocation of ${invocation.memberName}');
}
+
+ @override
+ void recordAnalysisErrors(
+ String pluginId, String filePath, List<AnalysisError> errorData) {
+ recordedErrors.putIfAbsent(
+ pluginId, () => <String, List<AnalysisError>>{})[filePath] = errorData;
+ }
}
class TestServerCommunicationChannel implements ServerCommunicationChannel {

Powered by Google App Engine
This is Rietveld 408576698