| OLD | NEW |
| 1 'use strict'; | 1 'use strict'; |
| 2 | 2 |
| 3 function fakeUsbDevices() { | 3 function fakeUsbDevices() { |
| 4 return define('Fake USB Devices', [ | 4 return define('Fake USB Devices', [ |
| 5 'device/usb/public/interfaces/device.mojom', | 5 'device/usb/public/interfaces/device.mojom', |
| 6 ], device => Promise.resolve([ | 6 ], device => Promise.resolve([ |
| 7 { | 7 { |
| 8 guid: 'CD9FA048-FC9B-7A71-DBFC-FD44B78D6397', | 8 guid: 'CD9FA048-FC9B-7A71-DBFC-FD44B78D6397', |
| 9 usb_version_major: 2, | 9 usb_version_major: 2, |
| 10 usb_version_minor: 0, | 10 usb_version_minor: 0, |
| 11 usb_version_subminor: 0, | 11 usb_version_subminor: 0, |
| 12 class_code: 7, | 12 class_code: 7, |
| 13 subclass_code: 1, | 13 subclass_code: 1, |
| 14 protocol_code: 2, | 14 protocol_code: 2, |
| 15 vendor_id: 0x18d1, | 15 vendor_id: 0x18d1, |
| 16 product_id: 0xf00d, | 16 product_id: 0xf00d, |
| 17 device_version_major: 1, | 17 device_version_major: 1, |
| 18 device_version_minor: 2, | 18 device_version_minor: 2, |
| 19 device_version_subminor: 3, | 19 device_version_subminor: 3, |
| 20 manufacturer_name: 'Google, Inc.', | 20 manufacturer_name: 'Google, Inc.', |
| 21 product_name: 'The amazing imaginary printer', | 21 product_name: 'The amazing imaginary printer', |
| 22 serial_number: '4', | 22 serial_number: '4', |
| 23 active_configuration: 0, |
| 23 configurations: [ | 24 configurations: [ |
| 24 { | 25 { |
| 25 configuration_value: 1, | 26 configuration_value: 1, |
| 26 configuration_name: 'Printer Mode', | 27 configuration_name: 'Printer Mode', |
| 27 interfaces: [ | 28 interfaces: [ |
| 28 { | 29 { |
| 29 interface_number: 0, | 30 interface_number: 0, |
| 30 alternates: [ | 31 alternates: [ |
| 31 { | 32 { |
| 32 alternate_setting: 0, | 33 alternate_setting: 0, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 112 } |
| 112 ] | 113 ] |
| 113 }, | 114 }, |
| 114 ] | 115 ] |
| 115 } | 116 } |
| 116 ], | 117 ], |
| 117 webusb_allowed_origins: { origins: [], configurations: [] }, | 118 webusb_allowed_origins: { origins: [], configurations: [] }, |
| 118 } | 119 } |
| 119 ])); | 120 ])); |
| 120 } | 121 } |
| OLD | NEW |