| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library mocks; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:io'; | 6 import 'dart:io'; |
| 9 | 7 |
| 10 import 'package:analysis_server/plugin/protocol/protocol.dart' | 8 import 'package:analysis_server/protocol/protocol.dart'; |
| 9 import 'package:analysis_server/protocol/protocol_generated.dart' |
| 11 hide Element, ElementKind; | 10 hide Element, ElementKind; |
| 12 import 'package:analysis_server/src/analysis_server.dart'; | 11 import 'package:analysis_server/src/analysis_server.dart'; |
| 13 import 'package:analysis_server/src/channel/channel.dart'; | 12 import 'package:analysis_server/src/channel/channel.dart'; |
| 14 import 'package:analysis_server/src/operation/operation.dart'; | 13 import 'package:analysis_server/src/operation/operation.dart'; |
| 15 import 'package:analysis_server/src/operation/operation_analysis.dart'; | 14 import 'package:analysis_server/src/operation/operation_analysis.dart'; |
| 16 import 'package:analyzer/dart/element/element.dart'; | 15 import 'package:analyzer/dart/element/element.dart'; |
| 17 import 'package:analyzer/file_system/file_system.dart' as resource; | 16 import 'package:analyzer/file_system/file_system.dart' as resource; |
| 18 import 'package:analyzer/file_system/memory_file_system.dart' as resource; | 17 import 'package:analyzer/file_system/memory_file_system.dart' as resource; |
| 19 import 'package:analyzer/source/package_map_provider.dart'; | 18 import 'package:analyzer/source/package_map_provider.dart'; |
| 20 import 'package:analyzer/source/pub_package_map_provider.dart'; | 19 import 'package:analyzer/source/pub_package_map_provider.dart'; |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 } | 430 } |
| 432 return mismatchDescription; | 431 return mismatchDescription; |
| 433 } | 432 } |
| 434 | 433 |
| 435 @override | 434 @override |
| 436 bool matches(item, Map matchState) { | 435 bool matches(item, Map matchState) { |
| 437 Response response = item; | 436 Response response = item; |
| 438 return response != null && response.id == _id && response.error == null; | 437 return response != null && response.id == _id && response.error == null; |
| 439 } | 438 } |
| 440 } | 439 } |
| OLD | NEW |