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

Unified Diff: pkg/analyzer/test/generated/resolver_test_case.dart

Issue 2393663002: More fixes for testing under windows (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/file_system/resource_uri_resolver_test.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/generated/resolver_test_case.dart
diff --git a/pkg/analyzer/test/generated/resolver_test_case.dart b/pkg/analyzer/test/generated/resolver_test_case.dart
index 0e493044e9a40575ed181c13cab1b7697033b526..4c4efdaded92bda26d9214875debbec730d882f2 100644
--- a/pkg/analyzer/test/generated/resolver_test_case.dart
+++ b/pkg/analyzer/test/generated/resolver_test_case.dart
@@ -10,7 +10,6 @@ import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/dart/element/type.dart';
import 'package:analyzer/error/error.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
-import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer/src/dart/element/element.dart';
import 'package:analyzer/src/dart/element/type.dart';
import 'package:analyzer/src/error/codes.dart';
@@ -481,8 +480,7 @@ class ResolverTestCase extends EngineTestCase {
* source to the analysis context. The file path must be absolute.
*/
Source cacheSource(String filePath, String contents) {
- Source source =
- PhysicalResourceProvider.INSTANCE.getFile(filePath).createSource();
+ Source source = resourceProvider.getFile(filePath).createSource();
analysisContext2.setContents(source, contents);
return source;
}
@@ -520,8 +518,7 @@ class ResolverTestCase extends EngineTestCase {
* give it an empty content. Return the source that was created.
*/
Source createNamedSource(String fileName) {
- Source source =
- PhysicalResourceProvider.INSTANCE.getFile(fileName).createSource();
+ Source source = resourceProvider.getFile(fileName).createSource();
analysisContext2.setContents(source, '');
return source;
}
« no previous file with comments | « pkg/analyzer/test/file_system/resource_uri_resolver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698