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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 2320733003: Remove final references to PackageUriResolver (Closed)
Patch Set: Created 4 years, 3 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
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 analyzer.test.generated.all_the_rest_test; 5 library analyzer.test.generated.all_the_rest_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 expect(cache.getContents(source), contents); 102 expect(cache.getContents(source), contents);
103 expect(cache.getModificationStamp(source), isNotNull); 103 expect(cache.getModificationStamp(source), isNotNull);
104 expect(cache.setContents(source, contents), contents); 104 expect(cache.setContents(source, contents), contents);
105 expect(cache.setContents(source, null), contents); 105 expect(cache.setContents(source, null), contents);
106 expect(cache.getContents(source), isNull); 106 expect(cache.getContents(source), isNull);
107 expect(cache.getModificationStamp(source), isNull); 107 expect(cache.getModificationStamp(source), isNull);
108 expect(cache.setContents(source, null), isNull); 108 expect(cache.setContents(source, null), isNull);
109 } 109 }
110 } 110 }
111 111
112 @deprecated
112 @reflectiveTest 113 @reflectiveTest
113 class CustomUriResolverTest { 114 class CustomUriResolverTest {
114 void test_creation() { 115 void test_creation() {
115 expect(new CustomUriResolver({}), isNotNull); 116 expect(new CustomUriResolver({}), isNotNull);
116 } 117 }
117 118
118 void test_resolve_unknown_uri() { 119 void test_resolve_unknown_uri() {
119 UriResolver resolver = new CustomUriResolver({ 120 UriResolver resolver = new CustomUriResolver({
120 'custom:library': '/path/to/library.dart', 121 'custom:library': '/path/to/library.dart',
121 }); 122 });
(...skipping 4438 matching lines...) Expand 10 before | Expand all | Expand 10 after
4560 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); 4561 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI));
4561 expect(UriKind.fromEncoding(0x58), same(null)); 4562 expect(UriKind.fromEncoding(0x58), same(null));
4562 } 4563 }
4563 4564
4564 void test_getEncoding() { 4565 void test_getEncoding() {
4565 expect(UriKind.DART_URI.encoding, 0x64); 4566 expect(UriKind.DART_URI.encoding, 0x64);
4566 expect(UriKind.FILE_URI.encoding, 0x66); 4567 expect(UriKind.FILE_URI.encoding, 0x66);
4567 expect(UriKind.PACKAGE_URI.encoding, 0x70); 4568 expect(UriKind.PACKAGE_URI.encoding, 0x70);
4568 } 4569 }
4569 } 4570 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698