| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 analyzer.test.src.summary.in_summary_source_test; | 5 library analyzer.test.src.summary.in_summary_source_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/source_io.dart'; | 7 import 'package:analyzer/src/generated/source_io.dart'; |
| 8 import 'package:analyzer/src/summary/format.dart'; | 8 import 'package:analyzer/src/summary/format.dart'; |
| 9 import 'package:analyzer/src/summary/idl.dart'; | 9 import 'package:analyzer/src/summary/idl.dart'; |
| 10 import 'package:analyzer/src/summary/package_bundle_reader.dart'; | 10 import 'package:analyzer/src/summary/package_bundle_reader.dart'; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 factory MockSummaryDataStore.fake(Map<String, String> uriToSummary, | 64 factory MockSummaryDataStore.fake(Map<String, String> uriToSummary, |
| 65 {Map<String, String> uriToFallbackModePath: const {}}) { | 65 {Map<String, String> uriToFallbackModePath: const {}}) { |
| 66 // Create fake unlinked map. | 66 // Create fake unlinked map. |
| 67 // We don't populate the values as it is not needed for the test. | 67 // We don't populate the values as it is not needed for the test. |
| 68 var unlinkedMap = new Map<String, UnlinkedUnit>.fromIterable( | 68 var unlinkedMap = new Map<String, UnlinkedUnit>.fromIterable( |
| 69 uriToSummary.keys, | 69 uriToSummary.keys, |
| 70 value: (uri) => new UnlinkedUnitBuilder( | 70 value: (uri) => new UnlinkedUnitBuilder( |
| 71 fallbackModePath: uriToFallbackModePath[uri])); | 71 fallbackModePath: uriToFallbackModePath[uri])); |
| 72 return new MockSummaryDataStore(null, unlinkedMap, uriToSummary); | 72 return new MockSummaryDataStore(null, unlinkedMap, uriToSummary); |
| 73 } | 73 } |
| 74 |
| 75 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 74 } | 76 } |
| OLD | NEW |