Unverified Commit b156c0c4 authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

[flutter_tools] migrate clean_test to null-safety (#107750)

parent 54298d1c
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// @dart = 2.8
import 'package:file/memory.dart'; import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart'; import 'package:file_testing/file_testing.dart';
import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/base/file_system.dart';
...@@ -22,8 +20,8 @@ import '../../src/context.dart'; ...@@ -22,8 +20,8 @@ import '../../src/context.dart';
void main() { void main() {
group('clean command', () { group('clean command', () {
Xcode xcode; late Xcode xcode;
FakeXcodeProjectInterpreter xcodeProjectInterpreter; late FakeXcodeProjectInterpreter xcodeProjectInterpreter;
setUp(() { setUp(() {
xcodeProjectInterpreter = FakeXcodeProjectInterpreter(); xcodeProjectInterpreter = FakeXcodeProjectInterpreter();
...@@ -34,8 +32,8 @@ void main() { ...@@ -34,8 +32,8 @@ void main() {
}); });
group('general', () { group('general', () {
MemoryFileSystem fs; late MemoryFileSystem fs;
Directory buildDirectory; late Directory buildDirectory;
setUp(() { setUp(() {
fs = MemoryFileSystem.test(); fs = MemoryFileSystem.test();
...@@ -104,9 +102,9 @@ void main() { ...@@ -104,9 +102,9 @@ void main() {
}); });
group('Windows', () { group('Windows', () {
FakePlatform windowsPlatform; late FakePlatform windowsPlatform;
MemoryFileSystem fileSystem; late MemoryFileSystem fileSystem;
FileExceptionHandler exceptionHandler; late FileExceptionHandler exceptionHandler;
setUp(() { setUp(() {
windowsPlatform = FakePlatform(operatingSystem: 'windows'); windowsPlatform = FakePlatform(operatingSystem: 'windows');
...@@ -191,8 +189,13 @@ class FakeXcodeProjectInterpreter extends Fake implements XcodeProjectInterprete ...@@ -191,8 +189,13 @@ class FakeXcodeProjectInterpreter extends Fake implements XcodeProjectInterprete
Version version = Version(0, 0, 0); Version version = Version(0, 0, 0);
@override @override
Future<XcodeProjectInfo> getInfo(String projectPath, {String projectFilename}) async { Future<XcodeProjectInfo> getInfo(String projectPath, {String? projectFilename}) async {
return XcodeProjectInfo(null, null, <String>['Runner'], BufferLogger.test()); return XcodeProjectInfo(
const <String>[],
const <String>[],
<String>['Runner'],
BufferLogger.test(),
);
} }
final List<CleanWorkspaceCall> workspaces = <CleanWorkspaceCall>[]; final List<CleanWorkspaceCall> workspaces = <CleanWorkspaceCall>[];
......
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