Index: pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart |
diff --git a/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart b/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart |
index c4e3210c598ba13376afb4e3969051884003d722..20cdddf952c5f4cb53d33f310d7824e798cf79e7 100644 |
--- a/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart |
+++ b/pkg/analysis_server/test/source/caching_put_package_map_provider_test.dart |
@@ -24,20 +24,14 @@ main() { |
bool writeFileException; |
Map result1 = { |
- 'packages': { |
- 'foo': '/tmp/proj1/packages/foo' |
- }, |
+ 'packages': {'foo': '/tmp/proj1/packages/foo'}, |
'input_files': ['/tmp/proj1/pubspec.yaml'] |
}; |
- Map result1error = { |
- 'input_files': ['/tmp/proj1/pubspec.lock'] |
- }; |
+ Map result1error = {'input_files': ['/tmp/proj1/pubspec.lock']}; |
Map result2 = { |
- 'packages': { |
- 'bar': '/tmp/proj2/packages/bar' |
- }, |
+ 'packages': {'bar': '/tmp/proj2/packages/bar'}, |
'input_files': ['/tmp/proj2/pubspec.yaml'] |
}; |
@@ -71,10 +65,8 @@ main() { |
} |
CachingPubPackageMapProvider newPkgProvider() { |
- return new CachingPubPackageMapProvider( |
- resProvider, |
- DirectoryBasedDartSdk.defaultSdk, |
- mockRunner.runPubList, |
+ return new CachingPubPackageMapProvider(resProvider, |
+ DirectoryBasedDartSdk.defaultSdk, mockRunner.runPubList, |
mockWriteFile); |
} |
@@ -304,7 +296,6 @@ _assertInfo(PackageMapInfo info, Map expected) { |
} |
} |
- |
typedef String MockResultFunction(); |
/** |