Unverified Commit 6fc99e98 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

rename headless server to web server (#42970)

parent 21be8372
...@@ -190,7 +190,7 @@ String parseVersionForWindows(String input) { ...@@ -190,7 +190,7 @@ String parseVersionForWindows(String input) {
/// A special device type to allow serving for arbitrary browsers. /// A special device type to allow serving for arbitrary browsers.
class WebServerDevice extends Device { class WebServerDevice extends Device {
WebServerDevice() : super( WebServerDevice() : super(
'headless-server', 'web-server',
platformType: PlatformType.web, platformType: PlatformType.web,
category: Category.web, category: Category.web,
ephemeral: false, ephemeral: false,
...@@ -228,7 +228,7 @@ class WebServerDevice extends Device { ...@@ -228,7 +228,7 @@ class WebServerDevice extends Device {
} }
@override @override
String get name => 'Headless Server'; String get name => 'Web Server';
@override @override
DevicePortForwarder get portForwarder => const NoOpDevicePortForwarder(); DevicePortForwarder get portForwarder => const NoOpDevicePortForwarder();
......
...@@ -49,8 +49,8 @@ void main() { ...@@ -49,8 +49,8 @@ void main() {
test('Server defaults', () async { test('Server defaults', () async {
final WebServerDevice device = WebServerDevice(); final WebServerDevice device = WebServerDevice();
expect(device.name, 'Headless Server'); expect(device.name, 'Web Server');
expect(device.id, 'headless-server'); expect(device.id, 'web-server');
expect(device.supportsHotReload, true); expect(device.supportsHotReload, true);
expect(device.supportsHotRestart, true); expect(device.supportsHotRestart, true);
expect(device.supportsStartPaused, true); expect(device.supportsStartPaused, true);
......
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