Report vendor and product information via GetDeviceProperties.
This CL adds VendorId, VendorName, ProductId, and ProductName to the
properties returned by org.chromium.CrosDisks.GetDeviceProperties. The
vendor and product information is obtained from the USB ID database on
the system.
BUG=chromium-os:33225
TEST=Tested the following:
1. Build cros-disks for {x86,amd64,arm}-generic.
2. Run cros-disks unit tests.
3. Run platform_CrosDisksDBus and platform_CrosDisksFilesystem tests.
4. Manually test mounting different removable USB devices and verify the
vendor and product information of the devices return by
org.chromium.CrosDisks.GetDeviceProperties.
Change-Id: I43982e6e72256a4e362beca4753caf11f2a37741
Reviewed-on: https://gerrit.chromium.org/gerrit/33044
Reviewed-by: Darin Petkov <petkov@chromium.org>
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
8 files changed