Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 87fe686af4dd4a150afa00c8f3309dbbb42ee93d..8c8dd80330eab28902c85afff729250d9fd4ab74 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -192,8 +192,8 @@ void servePackages(List<Map> pubspecs) { |
} |
_servedPackageDir.contents.clear(); |
- for (var name in _servedPackages.getKeys()) { |
- var versions = _servedPackages[name].getKeys(); |
+ for (var name in _servedPackages.keys) { |
+ var versions = _servedPackages[name].keys; |
_servedPackageDir.contents.addAll([ |
file('$name.json', |
JSON.stringify({'versions': versions})), |
@@ -380,7 +380,7 @@ Future<Map> _dependencyListToMap(List<Map> dependencies) { |
return _awaitObject(dependencies).transform((resolvedDependencies) { |
var result = <String, Map>{}; |
for (var dependency in resolvedDependencies) { |
- var keys = dependency.getKeys().filter((key) => key != "version"); |
+ var keys = dependency.keys.filter((key) => key != "version"); |
var sourceName = only(keys); |
var source; |
switch (sourceName) { |