generic_sensor: Extract Functions into PlatformSensorProviderLinuxBase
As Linux and ChromeOS shares the same algorithms for the fusion sensors, this commit extracts IsFusionSensorType and CreateFusionSensor into a base class PlatformSensorProviderLinuxBase. BUG=chromium:1116940 TEST=unit tests Change-Id: I074b2be07a3ccb2a7ad220cb7fafcbb11faa67ad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500391Reviewed-by:Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Commit-Queue: Cheng-Hao Yang <chenghaoyang@chromium.org> Cr-Commit-Position: refs/heads/master@{#821296}
Showing
Please register or sign in to comment