Revert "Replace netls and netaddr with dev_finder" (#26249)

* Revert "Replace netls and netaddr with dev_finder (#26090)"

This reverts commit eee154affb.
This commit is contained in:
Jonah Williams
2019-01-08 13:45:55 -08:00
committed by GitHub
parent 322afbb160
commit 985ccb6d14
4 changed files with 56 additions and 43 deletions

View File

@@ -29,13 +29,12 @@ void main() {
expect(device.name, name);
});
test('parse dev_finder output', () {
const String example = '192.168.42.56 paper-pulp-bush-angel';
final List<FuchsiaDevice> names = parseListDevices(example);
test('parse netls log output', () {
const String example = 'device lilia-shore-only-last (fe80::0000:a00a:f00f:2002/3)';
final List<String> names = parseFuchsiaDeviceOutput(example);
expect(names.length, 1);
expect(names.first.name, 'paper-pulp-bush-angel');
expect(names.first.id, '192.168.42.56');
expect(names.first, 'lilia-shore-only-last');
});
test('default capabilities', () async {