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

Unified Diff: test/descriptor.dart

Issue 2184303002: Make pub strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 5 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 | « test/dependency_computer/utils.dart ('k') | test/descriptor/git.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/descriptor.dart
diff --git a/test/descriptor.dart b/test/descriptor.dart
index de57c14b1ee83ae686139b09a77b4c175cf6aef0..d4855be06af4abc9a50c2d340bfc5a4423b00504 100644
--- a/test/descriptor.dart
+++ b/test/descriptor.dart
@@ -56,7 +56,7 @@ Descriptor pubspec(Map contents) {
/// Describes a file named `pubspec.yaml` for an application package with the
/// given [dependencies].
Descriptor appPubspec([Map dependencies]) {
- var map = {"name": "myapp"};
+ var map = <String, dynamic>{"name": "myapp"};
if (dependencies != null) map["dependencies"] = dependencies;
return pubspec(map);
}
@@ -201,5 +201,5 @@ DirectoryDescriptor appDir([Map dependencies]) =>
/// entries (one per key in [dependencies]), each with a path that contains
/// either the version string (for a reference to the pub cache) or a
/// path to a path dependency, relative to the application directory.
-Descriptor packagesFile([Map dependencies]) =>
+Descriptor packagesFile([Map<String, String> dependencies]) =>
new PackagesFileDescriptor(dependencies);
« no previous file with comments | « test/dependency_computer/utils.dart ('k') | test/descriptor/git.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698