Detect MMC/SD card readers based on device driver.
BUG=chrome-os-partner:18031
TEST=Tested the following:
1. Build and run unit tests.
2. Insert a SD card to the built-in SD card reader on daisy and verify
that the following command reports DeviceMediaType as 2 (SD):
dbus-send --system --print-reply --type=method_call \
--dest=org.chromium.CrosDisks \
/org/chromium/CrosDisks \
org.chromium.CrosDisks.GetDeviceProperties \
string:/dev/mmcblk1p1
Also verify that CrOS File Manager shows a SD card icon for the
mounted SD card.
Change-Id: I4104cdc83b18a40b9463a923de03343d3a4a7370
Reviewed-on: https://gerrit.chromium.org/gerrit/44117
Reviewed-by: Darin Petkov <petkov@chromium.org>
Commit-Queue: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
2 files changed