OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 test.analysis.updateContent; | |
6 | |
7 import 'package:analysis_server/protocol/protocol.dart'; | 5 import 'package:analysis_server/protocol/protocol.dart'; |
8 import 'package:analysis_server/protocol/protocol_generated.dart'; | 6 import 'package:analysis_server/protocol/protocol_generated.dart'; |
9 import 'package:analysis_server/src/analysis_server.dart'; | 7 import 'package:analysis_server/src/analysis_server.dart'; |
10 import 'package:analysis_server/src/constants.dart'; | 8 import 'package:analysis_server/src/constants.dart'; |
11 import 'package:analysis_server/src/services/index/index.dart'; | 9 import 'package:analysis_server/src/services/index/index.dart'; |
12 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
13 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 11 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
14 import 'package:analyzer/file_system/file_system.dart'; | 12 import 'package:analyzer/file_system/file_system.dart'; |
15 import 'package:analyzer/src/generated/engine.dart'; | 13 import 'package:analyzer/src/generated/engine.dart'; |
16 import 'package:analyzer/src/generated/source.dart'; | 14 import 'package:analyzer/src/generated/source.dart'; |
17 import 'package:analyzer_plugin/protocol/protocol_common.dart' as plugin; | 15 import 'package:analyzer_plugin/protocol/protocol_common.dart' as plugin; |
| 16 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
18 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; | 17 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; |
19 import 'package:test/test.dart'; | 18 import 'package:test/test.dart'; |
20 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 19 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
21 import 'package:typed_mock/typed_mock.dart'; | 20 import 'package:typed_mock/typed_mock.dart'; |
22 | 21 |
23 import '../analysis_abstract.dart'; | 22 import '../analysis_abstract.dart'; |
24 | 23 |
25 main() { | 24 main() { |
26 defineReflectiveSuite(() { | 25 defineReflectiveSuite(() { |
27 defineReflectiveTests(UpdateContentTest); | 26 defineReflectiveTests(UpdateContentTest); |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 348 |
350 @override | 349 @override |
351 bool matches(arg) { | 350 bool matches(arg) { |
352 return arg is CompilationUnit && | 351 return arg is CompilationUnit && |
353 resolutionMap.elementDeclaredByCompilationUnit(arg).source.fullName == | 352 resolutionMap.elementDeclaredByCompilationUnit(arg).source.fullName == |
354 file; | 353 file; |
355 } | 354 } |
356 } | 355 } |
357 | 356 |
358 class _MockIndex extends TypedMock implements Index {} | 357 class _MockIndex extends TypedMock implements Index {} |
OLD | NEW |