[flutter_tools] split cache into API and implementation (#79580)
This commit is contained in:
@@ -33,6 +33,7 @@ void main() {
|
||||
platform: platform,
|
||||
logger: BufferLogger.test(),
|
||||
osUtils: FakeOperatingSystemUtils(),
|
||||
artifacts: <ArtifactSet>[],
|
||||
);
|
||||
artifacts = CachedArtifacts(
|
||||
fileSystem: fileSystem,
|
||||
@@ -187,6 +188,7 @@ void main() {
|
||||
platform: platform,
|
||||
logger: BufferLogger.test(),
|
||||
osUtils: FakeOperatingSystemUtils(),
|
||||
artifacts: <ArtifactSet>[],
|
||||
);
|
||||
artifacts = LocalEngineArtifacts(
|
||||
fileSystem.path.join(fileSystem.currentDirectory.path, 'out', 'android_debug_unopt'),
|
||||
|
||||
@@ -16,6 +16,7 @@ import 'package:flutter_tools/src/base/os.dart';
|
||||
import 'package:flutter_tools/src/base/platform.dart';
|
||||
import 'package:flutter_tools/src/cache.dart';
|
||||
import 'package:flutter_tools/src/dart/pub.dart';
|
||||
import 'package:flutter_tools/src/flutter_cache.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:mockito/mockito.dart';
|
||||
|
||||
|
||||
@@ -814,6 +814,7 @@ void _testInMemory(String description, Future<void> Function() testMethod) {
|
||||
transfer(Cache(
|
||||
fileSystem: globals.fs,
|
||||
logger: logger,
|
||||
artifacts: <ArtifactSet>[],
|
||||
osUtils: OperatingSystemUtils(
|
||||
fileSystem: globals.fs,
|
||||
logger: logger,
|
||||
@@ -858,6 +859,7 @@ void _testInMemory(String description, Future<void> Function() testMethod) {
|
||||
fileSystem: testFileSystem,
|
||||
osUtils: globals.os,
|
||||
platform: globals.platform,
|
||||
artifacts: <ArtifactSet>[],
|
||||
),
|
||||
FlutterProjectFactory: () => FlutterProjectFactory(
|
||||
fileSystem: testFileSystem,
|
||||
|
||||
Reference in New Issue
Block a user