| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library services.src.search.search_engine_test; | 8 library test.services.src.search.search_engine; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| 11 | 11 |
| 12 import 'package:analysis_services/index/index.dart'; | 12 import 'package:analysis_services/index/index.dart'; |
| 13 import 'package:analysis_services/index/local_memory_index.dart'; | 13 import 'package:analysis_services/index/local_memory_index.dart'; |
| 14 import 'package:analysis_services/search/search_engine.dart'; | 14 import 'package:analysis_services/search/search_engine.dart'; |
| 15 import 'package:analysis_services/src/search/search_engine.dart'; | 15 import 'package:analysis_services/src/search/search_engine.dart'; |
| 16 import 'package:analysis_testing/mocks.dart'; | 16 import 'package:analysis_testing/mocks.dart'; |
| 17 import 'package:analysis_testing/reflective_tests.dart'; | 17 import 'package:analysis_testing/reflective_tests.dart'; |
| 18 import 'package:analyzer/src/generated/element.dart'; | 18 import 'package:analyzer/src/generated/element.dart'; |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 pattern).then((List<SearchMatch> matches) { | 649 pattern).then((List<SearchMatch> matches) { |
| 650 _assertMatches(matches, expectedMatches); | 650 _assertMatches(matches, expectedMatches); |
| 651 }); | 651 }); |
| 652 } | 652 } |
| 653 | 653 |
| 654 static void _assertMatches(List<SearchMatch> matches, | 654 static void _assertMatches(List<SearchMatch> matches, |
| 655 List<ExpectedMatch> expectedMatches) { | 655 List<ExpectedMatch> expectedMatches) { |
| 656 expect(matches, unorderedEquals(expectedMatches)); | 656 expect(matches, unorderedEquals(expectedMatches)); |
| 657 } | 657 } |
| 658 } | 658 } |
| OLD | NEW |