| 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 {
|
|
|