some whitespace cleanup (#14443)
diff --git a/packages/flutter_tools/lib/src/android/android_device.dart b/packages/flutter_tools/lib/src/android/android_device.dart index aef36790..4a2c606 100644 --- a/packages/flutter_tools/lib/src/android/android_device.dart +++ b/packages/flutter_tools/lib/src/android/android_device.dart
@@ -410,7 +410,7 @@ cmd = adbCommandForDevice(<String>[ 'shell', 'am', 'start', '-a', 'android.intent.action.RUN', - '-f', '0x20000000', // FLAG_ACTIVITY_SINGLE_TOP + '-f', '0x20000000', // FLAG_ACTIVITY_SINGLE_TOP '--ez', 'enable-background-compilation', 'true', '--ez', 'enable-dart-profiling', 'true', ]);
diff --git a/packages/flutter_tools/lib/src/android/android_sdk.dart b/packages/flutter_tools/lib/src/android/android_sdk.dart index 5b178b7..a024d73 100644 --- a/packages/flutter_tools/lib/src/android/android_sdk.dart +++ b/packages/flutter_tools/lib/src/android/android_sdk.dart
@@ -168,7 +168,7 @@ return null; } - // Try to find the NDK compiler. If we can't find it, it's also ok. + // Try to find the NDK compiler. If we can't find it, it's also ok. final String ndkDir = findNdk(androidHomeDir); String ndkCompiler; List<String> ndkCompilerArgs;
diff --git a/packages/flutter_tools/lib/src/artifacts.dart b/packages/flutter_tools/lib/src/artifacts.dart index bfe8963..c8060d1 100644 --- a/packages/flutter_tools/lib/src/artifacts.dart +++ b/packages/flutter_tools/lib/src/artifacts.dart
@@ -114,7 +114,7 @@ } @override - String getEngineType(TargetPlatform platform, [BuildMode mode]){ + String getEngineType(TargetPlatform platform, [BuildMode mode]) { return fs.path.basename(_getEngineArtifactsPath(platform, mode)); }
diff --git a/packages/flutter_tools/lib/src/base/flags.dart b/packages/flutter_tools/lib/src/base/flags.dart index a6b750f..429b03c 100644 --- a/packages/flutter_tools/lib/src/base/flags.dart +++ b/packages/flutter_tools/lib/src/base/flags.dart
@@ -44,7 +44,7 @@ } /// `true` iff the given flag/option was either explicitly specified by the - /// user at the command-line or it was defined to have a default value. + /// user at the command-line or it was defined to have a default value. bool contains(String key) { final ArgResults commandResults = _globalResults.command; final Iterable<String> options = commandResults?.options;
diff --git a/packages/flutter_tools/lib/src/base/os.dart b/packages/flutter_tools/lib/src/base/os.dart index a1c7d8a..0d7bb12 100644 --- a/packages/flutter_tools/lib/src/base/os.dart +++ b/packages/flutter_tools/lib/src/base/os.dart
@@ -166,7 +166,7 @@ final List<String> lines = result.stdout.trim().split('\n'); if (all) return lines.map((String path) => fs.file(path.trim())).toList(); - return <File>[fs.file(lines.first.trim())]; + return <File>[fs.file(lines.first.trim())]; } @override
diff --git a/packages/flutter_tools/lib/src/base/utils.dart b/packages/flutter_tools/lib/src/base/utils.dart index 96b8b617..b5d096b 100644 --- a/packages/flutter_tools/lib/src/base/utils.dart +++ b/packages/flutter_tools/lib/src/base/utils.dart
@@ -115,7 +115,7 @@ /// absolute path. String getDisplayPath(String fullPath) { final String cwd = fs.currentDirectory.path + fs.path.separator; - return fullPath.startsWith(cwd) ? fullPath.substring(cwd.length) : fullPath; + return fullPath.startsWith(cwd) ? fullPath.substring(cwd.length) : fullPath; } /// A class to maintain a list of items, fire events when items are added or @@ -207,7 +207,7 @@ '${_bitsDigits(16, 4)}${_bitsDigits(16, 4)}-' '${_bitsDigits(16, 4)}-' '4${_bitsDigits(12, 3)}-' - '${_printDigits(special, 1)}${_bitsDigits(12, 3)}-' + '${_printDigits(special, 1)}${_bitsDigits(12, 3)}-' '${_bitsDigits(16, 4)}${_bitsDigits(16, 4)}${_bitsDigits(16, 4)}'; }
diff --git a/packages/flutter_tools/lib/src/build_info.dart b/packages/flutter_tools/lib/src/build_info.dart index 8ed2b77..08d0d5e 100644 --- a/packages/flutter_tools/lib/src/build_info.dart +++ b/packages/flutter_tools/lib/src/build_info.dart
@@ -29,7 +29,7 @@ // Whether build should be done using Dart2 Frontend parser. final bool previewDart2; - + // Whether build should use strong mode semantics. final bool strongMode;
diff --git a/packages/flutter_tools/lib/src/cache.dart b/packages/flutter_tools/lib/src/cache.dart index 62083ac..81299b6 100644 --- a/packages/flutter_tools/lib/src/cache.dart +++ b/packages/flutter_tools/lib/src/cache.dart
@@ -236,7 +236,7 @@ String get version => cache.getVersionFor(name); /// Keep track of the files we've downloaded for this execution so we - /// can delete them after completion. We don't delete them right after + /// can delete them after completion. We don't delete them right after /// extraction in case [update] is interrupted, so we can restart without /// starting from scratch. final List<File> _downloadedFiles = <File>[];
diff --git a/packages/flutter_tools/lib/src/commands/build_aot.dart b/packages/flutter_tools/lib/src/commands/build_aot.dart index dd60d4d..59715d2 100644 --- a/packages/flutter_tools/lib/src/commands/build_aot.dart +++ b/packages/flutter_tools/lib/src/commands/build_aot.dart
@@ -306,8 +306,8 @@ } if (platform == TargetPlatform.android_arm) { genSnapshotCmd.addAll(<String>[ - '--no-sim-use-hardfp', // Android uses the softfloat ABI. - '--no-use-integer-division', // Not supported by the Pixel in 32-bit mode. + '--no-sim-use-hardfp', // Android uses the softfloat ABI. + '--no-use-integer-division', // Not supported by the Pixel in 32-bit mode. ]); } break; @@ -449,9 +449,9 @@ } else { if (compileToSharedLibrary) { // A word of warning: Instead of compiling via two steps, to a .o file and - // then to a .so file we use only one command. When using two commands + // then to a .so file we use only one command. When using two commands // gcc will end up putting a .eh_frame and a .debug_frame into the shared - // library. Without stripping .debug_frame afterwards, unwinding tools + // library. Without stripping .debug_frame afterwards, unwinding tools // based upon libunwind use just one and ignore the contents of the other // (which causes it to not look into the other section and therefore not // find the correct unwinding information).
diff --git a/packages/flutter_tools/lib/src/commands/build_apk.dart b/packages/flutter_tools/lib/src/commands/build_apk.dart index 67d8a18..70ae24b 100644 --- a/packages/flutter_tools/lib/src/commands/build_apk.dart +++ b/packages/flutter_tools/lib/src/commands/build_apk.dart
@@ -15,8 +15,8 @@ usesPubOption(); argParser - ..addFlag('preview-dart-2', negatable: false, hide: !verboseHelp) - ..addFlag('strong', negatable: false, hide: !verboseHelp) + ..addFlag('preview-dart-2', negatable: false, hide: !verboseHelp) + ..addFlag('strong', negatable: false, hide: !verboseHelp) ..addFlag('prefer-shared-library', negatable: false, help: 'Whether to prefer compiling to a *.so file (android only).') ..addOption('target-platform',
diff --git a/packages/flutter_tools/lib/src/commands/devices.dart b/packages/flutter_tools/lib/src/commands/devices.dart index 242aab9..1c8ef4e 100644 --- a/packages/flutter_tools/lib/src/commands/devices.dart +++ b/packages/flutter_tools/lib/src/commands/devices.dart
@@ -39,7 +39,7 @@ printStatus(''); for (String diagnostic in diagnostics) { printStatus('• ${diagnostic.replaceAll('\n', '\n ')}'); - } + } } } else { printStatus('${devices.length} connected ${pluralize('device', devices.length)}:\n');
diff --git a/packages/flutter_tools/lib/src/commands/ide_config.dart b/packages/flutter_tools/lib/src/commands/ide_config.dart index 1a7ee40..269674e 100644 --- a/packages/flutter_tools/lib/src/commands/ide_config.dart +++ b/packages/flutter_tools/lib/src/commands/ide_config.dart
@@ -96,7 +96,7 @@ return false; } - // Test byte by byte. We're assuming that these are small files. + // Test byte by byte. We're assuming that these are small files. final List<int> srcBytes = src.readAsBytesSync(); final List<int> destBytes = dest.readAsBytesSync(); for (int i = 0; i < srcBytes.length; ++i) {
diff --git a/packages/flutter_tools/lib/src/commands/packages.dart b/packages/flutter_tools/lib/src/commands/packages.dart index 42302a7..44aafbc 100644 --- a/packages/flutter_tools/lib/src/commands/packages.dart +++ b/packages/flutter_tools/lib/src/commands/packages.dart
@@ -102,7 +102,7 @@ } @override - Future<Null> runCommand() => pub(<String>['run', 'test']..addAll(argResults.rest), context: PubContext.runTest, retry: false); + Future<Null> runCommand() => pub(<String>['run', 'test']..addAll(argResults.rest), context: PubContext.runTest, retry: false); } class PackagesPassthroughCommand extends FlutterCommand {
diff --git a/packages/flutter_tools/lib/src/crash_reporting.dart b/packages/flutter_tools/lib/src/crash_reporting.dart index d2ab0b1..21caa67 100644 --- a/packages/flutter_tools/lib/src/crash_reporting.dart +++ b/packages/flutter_tools/lib/src/crash_reporting.dart
@@ -87,7 +87,7 @@ req.fields['product'] = _kProductId; req.fields['version'] = flutterVersion; req.fields['osName'] = platform.operatingSystem; - req.fields['osVersion'] = os.name; // this actually includes version + req.fields['osVersion'] = os.name; // this actually includes version req.fields['type'] = _kDartTypeId; req.fields['error_runtime_type'] = '${error.runtimeType}';
diff --git a/packages/flutter_tools/lib/src/dart/sdk.dart b/packages/flutter_tools/lib/src/dart/sdk.dart index b0cd984..b1af8d9 100644 --- a/packages/flutter_tools/lib/src/dart/sdk.dart +++ b/packages/flutter_tools/lib/src/dart/sdk.dart
@@ -15,7 +15,7 @@ const List<String> dartVmFlags = const <String>[]; /// Return the platform specific name for the given Dart SDK binary. So, `pub` -/// ==> `pub.bat`. The default SDK location can be overridden with a specified +/// ==> `pub.bat`. The default SDK location can be overridden with a specified /// [sdkLocation]. String sdkBinaryName(String name, { String sdkLocation }) { return fs.path.absolute(fs.path.join(sdkLocation ?? dartSdkPath, 'bin', platform.isWindows ? '$name.bat' : name));
diff --git a/packages/flutter_tools/lib/src/flutter_manifest.dart b/packages/flutter_tools/lib/src/flutter_manifest.dart index 81c5610..03cd721 100644 --- a/packages/flutter_tools/lib/src/flutter_manifest.dart +++ b/packages/flutter_tools/lib/src/flutter_manifest.dart
@@ -12,7 +12,7 @@ import 'cache.dart'; import 'globals.dart'; -/// A wrapper around the `flutter` section in the `pubspec.yaml` file. +/// A wrapper around the `flutter` section in the `pubspec.yaml` file. class FlutterManifest { FlutterManifest._();
diff --git a/packages/flutter_tools/lib/src/run_hot.dart b/packages/flutter_tools/lib/src/run_hot.dart index 039f440..82ea083 100644 --- a/packages/flutter_tools/lib/src/run_hot.dart +++ b/packages/flutter_tools/lib/src/run_hot.dart
@@ -452,7 +452,7 @@ } else { final bool reloadOnTopOfSnapshot = _runningFromSnapshot; final String progressPrefix = reloadOnTopOfSnapshot ? 'Initializing' : 'Performing'; - final Status status = logger.startProgress( + final Status status = logger.startProgress( '$progressPrefix hot reload...', progressId: 'hot.reload' );
diff --git a/packages/flutter_tools/lib/src/runner/flutter_command.dart b/packages/flutter_tools/lib/src/runner/flutter_command.dart index 3907599..aafc205 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command.dart
@@ -163,7 +163,7 @@ final bool previewDart2 = argParser.options.containsKey('preview-dart-2') ? argResults['preview-dart-2'] : false; - final bool strongMode = argParser.options.containsKey('strong') + final bool strongMode = argParser.options.containsKey('strong') ? argResults['strong'] : false; if (strongMode == true && previewDart2 == false) { @@ -404,7 +404,7 @@ final bool previewDart2 = argParser.options.containsKey('preview-dart-2') ? argResults['preview-dart-2'] : false; - final bool strongMode = argParser.options.containsKey('strong') + final bool strongMode = argParser.options.containsKey('strong') ? argResults['strong'] : false; if (strongMode == true && previewDart2 == false) {
diff --git a/packages/flutter_tools/lib/src/version.dart b/packages/flutter_tools/lib/src/version.dart index 8f16dce..7794ebc 100644 --- a/packages/flutter_tools/lib/src/version.dart +++ b/packages/flutter_tools/lib/src/version.dart
@@ -162,7 +162,7 @@ static Future<Null> _removeVersionCheckRemoteIfExists() async { final List<String> remotes = (await _run(<String>['git', 'remote'])) .split('\n') - .map((String name) => name.trim()) // to account for OS-specific line-breaks + .map((String name) => name.trim()) // to account for OS-specific line-breaks .toList(); if (remotes.contains(_kVersionCheckRemote)) await _run(<String>['git', 'remote', 'remove', _kVersionCheckRemote]);
diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart index a5c45aa..f258e9b 100644 --- a/packages/flutter_tools/lib/src/vmservice.dart +++ b/packages/flutter_tools/lib/src/vmservice.dart
@@ -547,7 +547,7 @@ VMService get vmService => null; /// Builds a [ServiceObject] corresponding to the [id] from [map]. - /// The result may come from the cache. The result will not necessarily + /// The result may come from the cache. The result will not necessarily /// be [loaded]. ServiceObject getFromMap(Map<String, dynamic> map); } @@ -1171,7 +1171,7 @@ Future<Map<String, dynamic>> flutterTogglePerformanceOverlayOverride() => _flutterToggle('showPerformanceOverlay'); - Future<Map<String, dynamic>> flutterToggleWidgetInspector() => _flutterToggle('debugWidgetInspector'); + Future<Map<String, dynamic>> flutterToggleWidgetInspector() => _flutterToggle('debugWidgetInspector'); Future<Null> flutterDebugAllowBanner(bool show) async { await invokeFlutterExtensionRpcRaw(
diff --git a/packages/flutter_tools/test/asset_bundle_test.dart b/packages/flutter_tools/test/asset_bundle_test.dart index 64c8763..1cc03b8 100644 --- a/packages/flutter_tools/test/asset_bundle_test.dart +++ b/packages/flutter_tools/test/asset_bundle_test.dart
@@ -16,7 +16,7 @@ import 'src/common.dart'; import 'src/context.dart'; -void main() { +void main() { setUpAll(() { Cache.flutterRoot = getFlutterRoot(); });
diff --git a/packages/flutter_tools/test/asset_bundle_variant_test.dart b/packages/flutter_tools/test/asset_bundle_variant_test.dart index 5aa28a5..207e445 100644 --- a/packages/flutter_tools/test/asset_bundle_variant_test.dart +++ b/packages/flutter_tools/test/asset_bundle_variant_test.dart
@@ -15,7 +15,7 @@ import 'src/common.dart'; import 'src/context.dart'; -void main() { +void main() { // These tests do not use a memory file system because we want to ensure that // asset bundles work correctly on Windows and Posix systems. Directory tempDir;
diff --git a/packages/flutter_tools/test/asset_test.dart b/packages/flutter_tools/test/asset_test.dart index 204bce5..352541b 100644 --- a/packages/flutter_tools/test/asset_test.dart +++ b/packages/flutter_tools/test/asset_test.dart
@@ -11,7 +11,7 @@ import 'src/common.dart'; import 'src/context.dart'; -void main() { +void main() { group('Assets', () { final String dataPath = fs.path.join( getFlutterRoot(),
diff --git a/packages/flutter_tools/test/base/file_system_test.dart b/packages/flutter_tools/test/base/file_system_test.dart index f39c325..144e4eb 100644 --- a/packages/flutter_tools/test/base/file_system_test.dart +++ b/packages/flutter_tools/test/base/file_system_test.dart
@@ -21,12 +21,12 @@ testUsingContext('recursively creates a directory if it does not exist', () async { ensureDirectoryExists('foo/bar/baz.flx'); expect(fs.isDirectorySync('foo/bar'), true); - }, overrides: <Type, Generator>{ FileSystem: () => fs } ); + }, overrides: <Type, Generator>{ FileSystem: () => fs }); testUsingContext('throws tool exit on failure to create', () async { fs.file('foo').createSync(); expect(() => ensureDirectoryExists('foo/bar.flx'), throwsToolExit()); - }, overrides: <Type, Generator>{ FileSystem: () => fs } ); + }, overrides: <Type, Generator>{ FileSystem: () => fs }); }); group('copyDirectorySync', () {
diff --git a/packages/flutter_tools/test/cache_test.dart b/packages/flutter_tools/test/cache_test.dart index b8fe08a..fb8fd5c 100644 --- a/packages/flutter_tools/test/cache_test.dart +++ b/packages/flutter_tools/test/cache_test.dart
@@ -82,7 +82,7 @@ expect(flattenNameSubdirs(Uri.parse('http://flutter.io/foo/bar')), 'flutter.io/foo/bar'); expect(flattenNameSubdirs(Uri.parse('http://docs.flutter.io/foo/bar')), 'docs.flutter.io/foo/bar'); expect(flattenNameSubdirs(Uri.parse('https://www.flutter.io')), 'www.flutter.io'); - }, overrides: <Type, Generator>{ + }, overrides: <Type, Generator>{ FileSystem: () => new MockFileSystem(), }); }
diff --git a/packages/flutter_tools/test/commands/test_test.dart b/packages/flutter_tools/test/commands/test_test.dart index 3b6ef1c..c423eae 100644 --- a/packages/flutter_tools/test/commands/test_test.dart +++ b/packages/flutter_tools/test/commands/test_test.dart
@@ -26,7 +26,7 @@ testUsingContext('not have extraneous error messages', () async { Cache.flutterRoot = '../..'; return _testFile('trivial_widget', automatedTestsDirectory, flutterTestDirectory, exitCode: isZero); - }, skip: io.Platform.isLinux); // Flutter on Linux sometimes has problems with font resolution (#7224) + }, skip: io.Platform.isLinux); // Flutter on Linux sometimes has problems with font resolution (#7224) testUsingContext('report nice errors for exceptions thrown within testWidgets()', () async { Cache.flutterRoot = '../..';
diff --git a/packages/flutter_tools/test/dart_dependencies_test.dart b/packages/flutter_tools/test/dart_dependencies_test.dart index c8e84b9..1158b55 100644 --- a/packages/flutter_tools/test/dart_dependencies_test.dart +++ b/packages/flutter_tools/test/dart_dependencies_test.dart
@@ -9,7 +9,7 @@ import 'src/common.dart'; import 'src/context.dart'; -void main() { +void main() { group('DartDependencySetBuilder', () { final String dataPath = fs.path.join( getFlutterRoot(),
diff --git a/packages/flutter_tools/test/dependency_checker_test.dart b/packages/flutter_tools/test/dependency_checker_test.dart index ecc76df..9fd7235 100644 --- a/packages/flutter_tools/test/dependency_checker_test.dart +++ b/packages/flutter_tools/test/dependency_checker_test.dart
@@ -12,7 +12,7 @@ import 'src/common.dart'; import 'src/context.dart'; -void main() { +void main() { group('DependencyChecker', () { final String dataPath = fs.path.join( getFlutterRoot(), @@ -96,7 +96,7 @@ final Directory destinationPath = fs.systemTempDirectory.createTempSync('dependency_checker_test_'); // Copy the golden input and let the test run in an isolated temporary in-memory file system. const LocalFileSystem localFileSystem = const LocalFileSystem(); - final Directory sourcePath = localFileSystem.directory(localFileSystem.path.join(dataPath, 'changed_sdk_location')); + final Directory sourcePath = localFileSystem.directory(localFileSystem.path.join(dataPath, 'changed_sdk_location')); copyDirectorySync(sourcePath, destinationPath); fs.currentDirectory = destinationPath;
diff --git a/packages/flutter_tools/test/devfs_test.dart b/packages/flutter_tools/test/devfs_test.dart index 3e802b6..a4b413e 100644 --- a/packages/flutter_tools/test/devfs_test.dart +++ b/packages/flutter_tools/test/devfs_test.dart
@@ -477,7 +477,7 @@ if (doubleSlash) { // Force two separators into the path. final String doubleSlash = fs.path.separator + fs.path.separator; - pkgFilePath = pkgTempDir.path + doubleSlash + fs.path.join(pkgName, 'lib', pkgFileName); + pkgFilePath = pkgTempDir.path + doubleSlash + fs.path.join(pkgName, 'lib', pkgFileName); } final File pkgFile = fs.file(pkgFilePath); await pkgFile.parent.create(recursive: true);
diff --git a/packages/flutter_tools/test/hot_test.dart b/packages/flutter_tools/test/hot_test.dart index 09e1692..a09d174 100644 --- a/packages/flutter_tools/test/hot_test.dart +++ b/packages/flutter_tools/test/hot_test.dart
@@ -7,7 +7,7 @@ import 'src/context.dart'; -void main() { +void main() { group('validateReloadReport', () { testUsingContext('invalid', () async { expect(HotRunner.validateReloadReport(<String, dynamic>{}), false);
diff --git a/packages/flutter_tools/test/ios/cocoapods_test.dart b/packages/flutter_tools/test/ios/cocoapods_test.dart index e010d1a..531c8ab 100644 --- a/packages/flutter_tools/test/ios/cocoapods_test.dart +++ b/packages/flutter_tools/test/ios/cocoapods_test.dart
@@ -256,8 +256,8 @@ } final ProcessResult exitsHappy = new ProcessResult( - 1, // pid - 0, // exitCode - '', // stdout - '', // stderr + 1, // pid + 0, // exitCode + '', // stdout + '', // stderr ); \ No newline at end of file
diff --git a/packages/flutter_tools/test/ios/code_signing_test.dart b/packages/flutter_tools/test/ios/code_signing_test.dart index 3e701cc..03dbea5 100644 --- a/packages/flutter_tools/test/ios/code_signing_test.dart +++ b/packages/flutter_tools/test/ios/code_signing_test.dart
@@ -96,8 +96,8 @@ when(mockProcessManager.runSync( argThat(contains('find-identity')), environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode ''' 1) 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 "iPhone Developer: Profile 1 (1111AAAA11)" 1 valid identities found''', @@ -108,8 +108,8 @@ environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode 'This is a mock certificate', '', )); @@ -151,8 +151,8 @@ when(mockProcessManager.runSync( argThat(contains('find-identity')), environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode ''' 1) 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 "iPhone Developer: Profile 1 (1111AAAA11)" 2) da4b9237bacccdf19c0760cab7aec4a8359010b0 "iPhone Developer: Profile 2 (2222BBBB22)" @@ -167,8 +167,8 @@ environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode 'This is a mock certificate', '', )); @@ -221,8 +221,8 @@ when(mockProcessManager.runSync( argThat(contains('find-identity')), environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode ''' 1) 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 "iPhone Developer: Profile 1 (1111AAAA11)" 2) da4b9237bacccdf19c0760cab7aec4a8359010b0 "iPhone Developer: Profile 2 (2222BBBB22)" @@ -237,8 +237,8 @@ environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode 'This is a mock certificate', '', )); @@ -285,8 +285,8 @@ when(mockProcessManager.runSync( argThat(contains('find-identity')), environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode ''' 1) 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 "iPhone Developer: Profile 1 (1111AAAA11)" 2) da4b9237bacccdf19c0760cab7aec4a8359010b0 "iPhone Developer: Profile 2 (2222BBBB22)" @@ -299,8 +299,8 @@ environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode 'This is a mock certificate', '', )); @@ -351,8 +351,8 @@ when(mockProcessManager.runSync( argThat(contains('find-identity')), environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode ''' 1) 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 "iPhone Developer: Profile 1 (1111AAAA11)" 2) da4b9237bacccdf19c0760cab7aec4a8359010b0 "iPhone Developer: Profile 2 (2222BBBB22)" @@ -367,8 +367,8 @@ environment: any, workingDirectory: any, )).thenReturn(new ProcessResult( - 1, // pid - 0, // exitCode + 1, // pid + 0, // exitCode 'This is a mock certificate', '', )); @@ -415,17 +415,17 @@ } final ProcessResult exitsHappy = new ProcessResult( - 1, // pid - 0, // exitCode - '', // stdout - '', // stderr + 1, // pid + 0, // exitCode + '', // stdout + '', // stderr ); final ProcessResult exitsFail = new ProcessResult( - 2, // pid - 1, // exitCode - '', // stdout - '', // stderr + 2, // pid + 1, // exitCode + '', // stdout + '', // stderr ); class MockProcessManager extends Mock implements ProcessManager {}
diff --git a/packages/flutter_tools/test/ios/ios_workflow_test.dart b/packages/flutter_tools/test/ios/ios_workflow_test.dart index deafa8c..1b222f3 100644 --- a/packages/flutter_tools/test/ios/ios_workflow_test.dart +++ b/packages/flutter_tools/test/ios/ios_workflow_test.dart
@@ -289,10 +289,10 @@ } final ProcessResult exitsHappy = new ProcessResult( - 1, // pid - 0, // exitCode - '', // stdout - '', // stderr + 1, // pid + 0, // exitCode + '', // stdout + '', // stderr ); class MockIMobileDevice extends IMobileDevice {
diff --git a/packages/flutter_tools/test/ios/mac_test.dart b/packages/flutter_tools/test/ios/mac_test.dart index 7b59f5e..987c737 100644 --- a/packages/flutter_tools/test/ios/mac_test.dart +++ b/packages/flutter_tools/test/ios/mac_test.dart
@@ -81,7 +81,7 @@ testUsingContext('idevicescreenshot captures and returns screenshot', () async { when(mockOutputFile.path).thenReturn(outputPath); - when(mockProcessManager.run(any, environment: null, workingDirectory: null)).thenAnswer( + when(mockProcessManager.run(any, environment: null, workingDirectory: null)).thenAnswer( (Invocation invocation) => new Future<ProcessResult>.value(new ProcessResult(4, 0, '', ''))); await iMobileDevice.takeScreenshot(mockOutputFile);
diff --git a/packages/flutter_tools/test/ios/simulators_test.dart b/packages/flutter_tools/test/ios/simulators_test.dart index 23fab79..53deb2e 100644 --- a/packages/flutter_tools/test/ios/simulators_test.dart +++ b/packages/flutter_tools/test/ios/simulators_test.dart
@@ -154,7 +154,7 @@ mockProcessManager = new MockProcessManager(); // Let everything else return exit code 0 so process.dart doesn't crash. when( - mockProcessManager.run(any, environment: null, workingDirectory: null) + mockProcessManager.run(any, environment: null, workingDirectory: null) ).thenAnswer((Invocation invocation) => new Future<ProcessResult>.value(new ProcessResult(2, 0, '', '')) );
diff --git a/packages/flutter_tools/test/replay/common.dart b/packages/flutter_tools/test/replay/common.dart index 2467652..2463d0a 100644 --- a/packages/flutter_tools/test/replay/common.dart +++ b/packages/flutter_tools/test/replay/common.dart
@@ -53,7 +53,7 @@ /// be running in a test via [testReplay]. /// /// [command] should be the list of arguments that are passed to the `flutter` -/// command-line tool. For example: +/// command-line tool. For example: /// /// ``` /// <String>[
diff --git a/packages/flutter_tools/test/runner/flutter_command_runner_test.dart b/packages/flutter_tools/test/runner/flutter_command_runner_test.dart index 1d76923..c4e156f 100644 --- a/packages/flutter_tools/test/runner/flutter_command_runner_test.dart +++ b/packages/flutter_tools/test/runner/flutter_command_runner_test.dart
@@ -55,5 +55,5 @@ fs.directory(fs.path.join(root, 'dev', 'tools', 'aatool')).path, fs.directory(fs.path.join(root, 'dev', 'tools')).path, ]); - }, overrides: <Type, Generator>{ FileSystem: () => fs } ); + }, overrides: <Type, Generator>{ FileSystem: () => fs }); }