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 test.services.src.search.search_engine; | 5 library test.services.src.search.search_engine; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/src/services/index/index.dart'; | 9 import 'package:analysis_server/src/services/index/index.dart'; |
10 import 'package:analysis_server/src/services/index/local_memory_index.dart'; | 10 import 'package:analysis_server/src/services/index/local_memory_index.dart'; |
11 import 'package:analysis_server/src/services/search/search_engine.dart'; | 11 import 'package:analysis_server/src/services/search/search_engine.dart'; |
12 import 'package:analysis_server/src/services/search/search_engine_internal.dart'
; | 12 import 'package:analysis_server/src/services/search/search_engine_internal.dart'
; |
13 import 'package:analyzer/src/generated/element.dart'; | 13 import 'package:analyzer/dart/element/element.dart'; |
| 14 import 'package:analyzer/src/dart/element/element.dart'; |
| 15 import 'package:analyzer/src/dart/element/member.dart'; |
14 import 'package:analyzer/src/generated/source.dart'; | 16 import 'package:analyzer/src/generated/source.dart'; |
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 17 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
16 import 'package:typed_mock/typed_mock.dart'; | 18 import 'package:typed_mock/typed_mock.dart'; |
17 import 'package:unittest/unittest.dart'; | 19 import 'package:unittest/unittest.dart'; |
18 | 20 |
19 import '../../abstract_single_unit.dart'; | 21 import '../../abstract_single_unit.dart'; |
20 import '../../utils.dart'; | 22 import '../../utils.dart'; |
21 | 23 |
22 main() { | 24 main() { |
23 initializeTestEnvironment(); | 25 initializeTestEnvironment(); |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 .then((List<SearchMatch> matches) { | 668 .then((List<SearchMatch> matches) { |
667 _assertMatches(matches, expectedMatches); | 669 _assertMatches(matches, expectedMatches); |
668 }); | 670 }); |
669 } | 671 } |
670 | 672 |
671 static void _assertMatches( | 673 static void _assertMatches( |
672 List<SearchMatch> matches, List<ExpectedMatch> expectedMatches) { | 674 List<SearchMatch> matches, List<ExpectedMatch> expectedMatches) { |
673 expect(matches, unorderedEquals(expectedMatches)); | 675 expect(matches, unorderedEquals(expectedMatches)); |
674 } | 676 } |
675 } | 677 } |
OLD | NEW |