Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: pkg/analyzer/test/src/summary/in_summary_source_test.dart

Issue 2538503002: Remove support for summary "fallback mode" from analyzer. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/package_bundle_reader.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/in_summary_source_test.dart
diff --git a/pkg/analyzer/test/src/summary/in_summary_source_test.dart b/pkg/analyzer/test/src/summary/in_summary_source_test.dart
index 91e662a2e2b934012d796d83d1228a75a1e16641..473d7e2ff2c63f54f2d94da0795df4ceb0ca0559 100644
--- a/pkg/analyzer/test/src/summary/in_summary_source_test.dart
+++ b/pkg/analyzer/test/src/summary/in_summary_source_test.dart
@@ -9,7 +9,6 @@ import 'package:analyzer/src/generated/source_io.dart';
import 'package:analyzer/src/summary/format.dart';
import 'package:analyzer/src/summary/idl.dart';
import 'package:analyzer/src/summary/package_bundle_reader.dart';
-import 'package:path/path.dart';
import 'package:test/test.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
@@ -21,23 +20,6 @@ main() {
@reflectiveTest
class InSummarySourceTest extends ReflectiveTest {
- test_fallbackPath() {
- String fooFallbackPath = absolute('path', 'to', 'foo.dart');
- var sourceFactory = new SourceFactory([
- new InSummaryUriResolver(
- PhysicalResourceProvider.INSTANCE,
- new MockSummaryDataStore.fake({
- 'package:foo/foo.dart': 'foo.sum',
- }, uriToFallbackModePath: {
- 'package:foo/foo.dart': fooFallbackPath
- }))
- ]);
-
- InSummarySource source = sourceFactory.forUri('package:foo/foo.dart');
- expect(source, isNotNull);
- expect(source.fullName, fooFallbackPath);
- }
-
test_InSummarySource() {
var sourceFactory = new SourceFactory([
new InSummaryUriResolver(
@@ -70,14 +52,12 @@ class MockSummaryDataStore implements SummaryDataStore {
MockSummaryDataStore(this.linkedMap, this.unlinkedMap, this.uriToSummaryPath);
- factory MockSummaryDataStore.fake(Map<String, String> uriToSummary,
- {Map<String, String> uriToFallbackModePath: const {}}) {
+ factory MockSummaryDataStore.fake(Map<String, String> uriToSummary) {
// Create fake unlinked map.
// We don't populate the values as it is not needed for the test.
var unlinkedMap = new Map<String, UnlinkedUnit>.fromIterable(
uriToSummary.keys,
- value: (uri) => new UnlinkedUnitBuilder(
- fallbackModePath: uriToFallbackModePath[uri]));
+ value: (uri) => new UnlinkedUnitBuilder());
return new MockSummaryDataStore(null, unlinkedMap, uriToSummary);
}
« no previous file with comments | « pkg/analyzer/lib/src/summary/package_bundle_reader.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698