[flutter_tools] mode code size output to ~/.flutter-devtools (#71601)
This commit is contained in:
@@ -34,6 +34,7 @@ final Platform macosPlatform = FakePlatform(
|
||||
operatingSystem: 'macos',
|
||||
environment: <String, String>{
|
||||
'FLUTTER_ROOT': '/',
|
||||
'HOME': '/',
|
||||
}
|
||||
);
|
||||
final Platform notMacosPlatform = FakePlatform(
|
||||
|
||||
@@ -26,7 +26,8 @@ const String _kTestFlutterRoot = '/flutter';
|
||||
final Platform linuxPlatform = FakePlatform(
|
||||
operatingSystem: 'linux',
|
||||
environment: <String, String>{
|
||||
'FLUTTER_ROOT': _kTestFlutterRoot
|
||||
'FLUTTER_ROOT': _kTestFlutterRoot,
|
||||
'HOME': '/',
|
||||
}
|
||||
);
|
||||
final Platform notLinuxPlatform = FakePlatform(
|
||||
|
||||
@@ -26,7 +26,7 @@ import '../../src/testbed.dart';
|
||||
|
||||
class FakeXcodeProjectInterpreterWithProfile extends FakeXcodeProjectInterpreter {
|
||||
@override
|
||||
Future<XcodeProjectInfo> getInfo(String projectPath, {String projectFilename}) async {
|
||||
Future<XcodeProjectInfo> getInfo(String projectPath, { String projectFilename }) async {
|
||||
return XcodeProjectInfo(
|
||||
<String>['Runner'],
|
||||
<String>['Debug', 'Profile', 'Release'],
|
||||
@@ -40,6 +40,7 @@ final Platform macosPlatform = FakePlatform(
|
||||
operatingSystem: 'macos',
|
||||
environment: <String, String>{
|
||||
'FLUTTER_ROOT': '/',
|
||||
'HOME': '/',
|
||||
}
|
||||
);
|
||||
final Platform notMacosPlatform = FakePlatform(
|
||||
|
||||
@@ -28,6 +28,7 @@ final Platform windowsPlatform = FakePlatform(
|
||||
environment: <String, String>{
|
||||
'PROGRAMFILES(X86)': r'C:\Program Files (x86)\',
|
||||
'FLUTTER_ROOT': flutterRoot,
|
||||
'USERPROFILE': '/',
|
||||
}
|
||||
);
|
||||
final Platform notWindowsPlatform = FakePlatform(
|
||||
|
||||
@@ -34,6 +34,7 @@ void main() {
|
||||
|
||||
final String outputFilePath = line.split(apkDebugMessage).last.trim();
|
||||
expect(fileSystem.file(fileSystem.path.join(woringDirectory, outputFilePath)), exists);
|
||||
expect(outputFilePath, contains('.flutter-devtools'));
|
||||
expect(result.exitCode, 0);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user