Unverified Commit 4ace88bf authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

fix spacing issue and add test for supportsHardwareRendering (#15305)

* fix spacing issue and add test for supportsHardwareRendering

* remove extra async tag

* move spacing to prev line
parent 046c6d5f
...@@ -289,12 +289,12 @@ class RunCommand extends RunCommandBase { ...@@ -289,12 +289,12 @@ class RunCommand extends RunCommandBase {
final bool enableSoftwareRendering = argResults['enable-software-rendering'] == true; final bool enableSoftwareRendering = argResults['enable-software-rendering'] == true;
if (enableSoftwareRendering) { if (enableSoftwareRendering) {
printStatus( printStatus(
'Using software rendering with device ${device.name}. You may get better performance' 'Using software rendering with device ${device.name}. You may get better performance '
'with hardware mode by configuring hardware rendering for your device.' 'with hardware mode by configuring hardware rendering for your device.'
); );
} else { } else {
printStatus( printStatus(
'Using hardware rendering with device ${device.name}. If you get graphics artifacts,' 'Using hardware rendering with device ${device.name}. If you get graphics artifacts, '
'consider enabling software rendering with "--enable-software-rendering".' 'consider enabling software rendering with "--enable-software-rendering".'
); );
} }
......
...@@ -109,6 +109,7 @@ Use the 'android' tool to install them: ...@@ -109,6 +109,7 @@ Use the 'android' tool to install them:
hardware = 'goldfish'; hardware = 'goldfish';
final AndroidDevice device = new AndroidDevice('test'); final AndroidDevice device = new AndroidDevice('test');
expect(await device.isLocalEmulator, true); expect(await device.isLocalEmulator, true);
expect(await device.supportsHardwareRendering, true);
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager, ProcessManager: () => mockProcessManager,
}); });
...@@ -125,6 +126,7 @@ Use the 'android' tool to install them: ...@@ -125,6 +126,7 @@ Use the 'android' tool to install them:
buildCharacteristics = 'att,emulator'; buildCharacteristics = 'att,emulator';
final AndroidDevice device = new AndroidDevice('test'); final AndroidDevice device = new AndroidDevice('test');
expect(await device.isLocalEmulator, true); expect(await device.isLocalEmulator, true);
expect(await device.supportsHardwareRendering, true);
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager, ProcessManager: () => mockProcessManager,
}); });
......
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