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

Unified Diff: pkg/analyzer/test/src/dart/sdk/sdk_test.dart

Issue 2344933002: Fix recently introduced strong-mode errors (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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/src/dart/sdk/sdk_test.dart
diff --git a/pkg/analyzer/test/src/dart/sdk/sdk_test.dart b/pkg/analyzer/test/src/dart/sdk/sdk_test.dart
index e6ab788860b0d497dc49dea4fd7385190d62573e..a13592e5630958892e6e15b3c5553728098ef651 100644
--- a/pkg/analyzer/test/src/dart/sdk/sdk_test.dart
+++ b/pkg/analyzer/test/src/dart/sdk/sdk_test.dart
@@ -33,7 +33,7 @@ main() {
class EmbedderSdkTest extends EmbedderRelatedTest {
void test_creation() {
EmbedderYamlLocator locator = new EmbedderYamlLocator({
- 'fox': [pathTranslator.getResource(foxLib)]
+ 'fox': <Folder>[pathTranslator.getResource(foxLib)]
});
EmbedderSdk sdk = new EmbedderSdk(resourceProvider, locator.embedderYamls);
@@ -42,7 +42,7 @@ class EmbedderSdkTest extends EmbedderRelatedTest {
void test_fromFileUri() {
EmbedderYamlLocator locator = new EmbedderYamlLocator({
- 'fox': [pathTranslator.getResource(foxLib)]
+ 'fox': <Folder>[pathTranslator.getResource(foxLib)]
});
EmbedderSdk sdk = new EmbedderSdk(resourceProvider, locator.embedderYamls);
@@ -63,7 +63,7 @@ class EmbedderSdkTest extends EmbedderRelatedTest {
pathTranslator.newFileWithBytes(
'$foxPath/sdk.ds', new PackageBundleAssembler().assemble().toBuffer());
EmbedderYamlLocator locator = new EmbedderYamlLocator({
- 'fox': [pathTranslator.getResource(foxLib)]
+ 'fox': <Folder>[pathTranslator.getResource(foxLib)]
});
// No bundle for spec mode.
{
@@ -83,7 +83,7 @@ class EmbedderSdkTest extends EmbedderRelatedTest {
void test_getLinkedBundle_noBundle() {
EmbedderYamlLocator locator = new EmbedderYamlLocator({
- 'fox': [pathTranslator.getResource(foxLib)]
+ 'fox': <Folder>[pathTranslator.getResource(foxLib)]
});
EmbedderSdk sdk = new EmbedderSdk(resourceProvider, locator.embedderYamls);
expect(sdk.getLinkedBundle(), isNull);
@@ -91,7 +91,7 @@ class EmbedderSdkTest extends EmbedderRelatedTest {
void test_getSdkLibrary() {
EmbedderYamlLocator locator = new EmbedderYamlLocator({
- 'fox': [pathTranslator.getResource(foxLib)]
+ 'fox': <Folder>[pathTranslator.getResource(foxLib)]
});
EmbedderSdk sdk = new EmbedderSdk(resourceProvider, locator.embedderYamls);
@@ -103,7 +103,7 @@ class EmbedderSdkTest extends EmbedderRelatedTest {
void test_mapDartUri() {
EmbedderYamlLocator locator = new EmbedderYamlLocator({
- 'fox': [pathTranslator.getResource(foxLib)]
+ 'fox': <Folder>[pathTranslator.getResource(foxLib)]
});
EmbedderSdk sdk = new EmbedderSdk(resourceProvider, locator.embedderYamls);
@@ -346,7 +346,7 @@ class SdkExtensionFinderTest {
test_create_noSdkExtPackageMap() {
var resolver = new SdkExtensionFinder({
- 'fox': [resourceProvider.getResource('/empty')]
+ 'fox': <Folder>[resourceProvider.getResource('/empty')]
});
expect(resolver.urlMappings.length, equals(0));
}
@@ -358,7 +358,7 @@ class SdkExtensionFinderTest {
test_create_sdkExtPackageMap() {
var resolver = new SdkExtensionFinder({
- 'fox': [resourceProvider.getResource('/tmp')]
+ 'fox': <Folder>[resourceProvider.getResource('/tmp')]
});
// We have four mappings.
Map<String, String> urlMappings = resolver.urlMappings;

Powered by Google App Engine
This is Rietveld 408576698