Unverified Commit 50f3e47b authored by Jesús S Guerrero's avatar Jesús S Guerrero Committed by GitHub

Revert "[flutter_tools] remove pub dependencies from universal #97722" (#100508)

parent e260b5d1
......@@ -74,7 +74,7 @@ class PubDependencies extends ArtifactSet {
}) : _logger = logger,
_flutterRoot = flutterRoot,
_pub = pub,
super(DevelopmentArtifact.web);
super(DevelopmentArtifact.universal);
final String Function() _flutterRoot;
final Logger _logger;
......
......@@ -319,17 +319,6 @@ void main() {
expect(() => cache.storageBaseUrl, throwsToolExit());
});
testWithoutContext('PubDependencies should be registered as web based', () async {
final BufferLogger logger = BufferLogger.test();
final PubDependencies pubDependencies = PubDependencies(
flutterRoot: () => '',
logger: logger,
pub: () => FakePub(),
);
expect(pubDependencies.developmentArtifact, DevelopmentArtifact.web);
});
});
testWithoutContext('flattenNameSubdirs', () {
......@@ -1087,6 +1076,19 @@ class FakeSimpleArtifact extends CachedArtifact {
Future<void> updateInner(ArtifactUpdater artifactUpdater, FileSystem fileSystem, OperatingSystemUtils operatingSystemUtils) async { }
}
class FakeDownloadedArtifact extends CachedArtifact {
FakeDownloadedArtifact(this.downloadedFile, Cache cache) : super(
'fake',
cache,
DevelopmentArtifact.universal,
);
final File downloadedFile;
@override
Future<void> updateInner(ArtifactUpdater artifactUpdater, FileSystem fileSystem, OperatingSystemUtils operatingSystemUtils) async { }
}
class FakeSecondaryCachedArtifact extends Fake implements CachedArtifact {
bool upToDate = false;
bool didUpdate = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment