apply partially the upcoming unnecessary_lambdas (#8810)
This commit is contained in:
committed by
GitHub
parent
f9ad230f15
commit
2166ea5b7f
@@ -51,7 +51,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
notifyingLogger: notifyingLogger
|
||||
);
|
||||
commands.add(<String, dynamic>{'id': 0, 'method': 'daemon.version'});
|
||||
@@ -69,7 +69,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
notifyingLogger: notifyingLogger
|
||||
);
|
||||
printError('daemon.logMessage test');
|
||||
@@ -95,7 +95,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
notifyingLogger: notifyingLogger,
|
||||
logToStdout: true
|
||||
);
|
||||
@@ -115,7 +115,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
notifyingLogger: notifyingLogger
|
||||
);
|
||||
commands.add(<String, dynamic>{'id': 0, 'method': 'daemon.shutdown'});
|
||||
@@ -134,7 +134,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
daemonCommand: command,
|
||||
notifyingLogger: notifyingLogger
|
||||
);
|
||||
@@ -155,7 +155,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
daemonCommand: command,
|
||||
notifyingLogger: notifyingLogger
|
||||
);
|
||||
@@ -176,7 +176,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
daemonCommand: command,
|
||||
notifyingLogger: notifyingLogger
|
||||
);
|
||||
@@ -203,7 +203,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
daemonCommand: command,
|
||||
notifyingLogger: notifyingLogger
|
||||
);
|
||||
@@ -221,7 +221,7 @@ void main() {
|
||||
final StreamController<Map<String, dynamic>> responses = new StreamController<Map<String, dynamic>>();
|
||||
daemon = new Daemon(
|
||||
commands.stream,
|
||||
(Map<String, dynamic> result) => responses.add(result),
|
||||
responses.add,
|
||||
notifyingLogger: notifyingLogger
|
||||
);
|
||||
commands.add(<String, dynamic>{'id': 0, 'method': 'device.getDevices'});
|
||||
|
||||
@@ -248,7 +248,7 @@ void main() {
|
||||
expect(device.name, 'mock-simulator');
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
Platform: () => macOsPlatform(),
|
||||
Platform: macOsPlatform,
|
||||
});
|
||||
|
||||
testUsingContext('uses existing Android device if and there are no simulators', () async {
|
||||
@@ -261,7 +261,7 @@ void main() {
|
||||
expect(device.name, 'mock-android-device');
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
Platform: () => macOsPlatform(),
|
||||
Platform: macOsPlatform,
|
||||
});
|
||||
|
||||
testUsingContext('launches emulator', () async {
|
||||
@@ -275,7 +275,7 @@ void main() {
|
||||
expect(device.name, 'new-simulator');
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
Platform: () => macOsPlatform(),
|
||||
Platform: macOsPlatform,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -288,7 +288,7 @@ void main() {
|
||||
expect(await findTargetDevice(), isNull);
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
Platform: () => platform(),
|
||||
Platform: platform,
|
||||
});
|
||||
|
||||
testUsingContext('uses existing Android device', () async {
|
||||
@@ -300,7 +300,7 @@ void main() {
|
||||
expect(device.name, 'mock-android-device');
|
||||
}, overrides: <Type, Generator>{
|
||||
FileSystem: () => fs,
|
||||
Platform: () => platform(),
|
||||
Platform: platform,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user