| Index: pkg/analyzer/test/resource_utils.dart
|
| diff --git a/pkg/analyzer/test/resource_utils.dart b/pkg/analyzer/test/resource_utils.dart
|
| index fdf1e5ac5009097fcee9bf70f9b4802f82fb13bb..b6a04a798ba1f857f6e1c849ac7813ce90c7dab5 100644
|
| --- a/pkg/analyzer/test/resource_utils.dart
|
| +++ b/pkg/analyzer/test/resource_utils.dart
|
| @@ -32,6 +32,15 @@ void expectPosixPath(String posixPath) {
|
| }
|
|
|
| /**
|
| + * Translate the given posixPath to a file URI appropriate for the
|
| + * platform on which the tests are executing.
|
| + */
|
| +String posixToOSFileUri(String posixPath) {
|
| + expectPosixPath(posixPath);
|
| + return isWindows ? 'file:///C:$posixPath' : 'file://$posixPath';
|
| +}
|
| +
|
| +/**
|
| * Translate the given posixPath to a path appropriate for the
|
| * platform on which the tests are executing.
|
| */
|
| @@ -48,15 +57,6 @@ String posixToOSPath(String posixPath) {
|
| }
|
|
|
| /**
|
| - * Translate the given posixPath to a file URI appropriate for the
|
| - * platform on which the tests are executing.
|
| - */
|
| -String posixToOSFileUri(String posixPath) {
|
| - expectPosixPath(posixPath);
|
| - return isWindows ? 'file:///C:$posixPath' : 'file://$posixPath';
|
| -}
|
| -
|
| -/**
|
| * A convenience utility for setting up a test [MemoryResourceProvider].
|
| * All supplied paths are assumed to be in [path.posix] format
|
| * and are automatically translated to [path.context].
|
| @@ -96,6 +96,9 @@ class TestResourceProvider implements ResourceProvider {
|
| AbsolutePathContext get absolutePathContext => _provider.absolutePathContext;
|
|
|
| @override
|
| + path.Context get pathContext => _provider.pathContext;
|
| +
|
| + @override
|
| File getFile(String path) => _provider.getFile(_assertPath(path));
|
|
|
| @override
|
| @@ -108,9 +111,6 @@ class TestResourceProvider implements ResourceProvider {
|
| Folder getStateLocation(String pluginId) =>
|
| _provider.getStateLocation(pluginId);
|
|
|
| - @override
|
| - path.Context get pathContext => _provider.pathContext;
|
| -
|
| /**
|
| * Assert that the given path is valid for the OS platform on which the
|
| * tests are running.
|
|
|