[flutter_tools] migrate artifacts to null safety (#83073)

This commit is contained in:
Jonah Williams
2021-05-21 11:54:03 -07:00
committed by GitHub
parent 31e755452c
commit b891adb4bd
2 changed files with 118 additions and 114 deletions

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import 'package:file/memory.dart';
import 'package:flutter_tools/src/artifacts.dart';
import 'package:flutter_tools/src/base/file_system.dart';
@@ -18,10 +16,10 @@ import '../src/fakes.dart';
void main() {
group('CachedArtifacts', () {
CachedArtifacts artifacts;
Cache cache;
FileSystem fileSystem;
Platform platform;
late CachedArtifacts artifacts;
late Cache cache;
late FileSystem fileSystem;
late Platform platform;
setUp(() {
fileSystem = MemoryFileSystem.test();
@@ -185,10 +183,10 @@ void main() {
});
group('LocalEngineArtifacts', () {
LocalEngineArtifacts artifacts;
Cache cache;
FileSystem fileSystem;
Platform platform;
late LocalEngineArtifacts artifacts;
late Cache cache;
late FileSystem fileSystem;
late Platform platform;
setUp(() {
fileSystem = MemoryFileSystem.test();