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

Side by Side Diff: pkg/analysis_server/test/context_manager_test.dart

Issue 1245263002: Actual URI support for package URI resolution. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merge master (tk2). Created 5 years, 5 months 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 unified diff | Download patch
« no previous file with comments | « pkg/analysis_server/pubspec.yaml ('k') | pkg/analyzer/CHANGELOG.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.context.directory.manager; 5 library test.context.directory.manager;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analysis_server/src/context_manager.dart'; 9 import 'package:analysis_server/src/context_manager.dart';
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 @override 1558 @override
1559 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 1559 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
1560 } 1560 }
1561 1561
1562 class TestUriResolver extends UriResolver { 1562 class TestUriResolver extends UriResolver {
1563 Map<Uri, Source> uriMap; 1563 Map<Uri, Source> uriMap;
1564 1564
1565 TestUriResolver(this.uriMap); 1565 TestUriResolver(this.uriMap);
1566 1566
1567 @override 1567 @override
1568 Source resolveAbsolute(Uri uri) { 1568 Source resolveAbsolute(Uri uri, [Uri actualUri]) {
1569 return uriMap[uri]; 1569 return uriMap[uri];
1570 } 1570 }
1571 } 1571 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/pubspec.yaml ('k') | pkg/analyzer/CHANGELOG.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698