Create single instance of SerialPortManagerImpl for Device Service
As a follow-up to r620271 which assigned each serial port a token this change makes it so that the Device Service serves all requests for the SerialPortManager interface from the same SerialPortManagerImpl. This means that the tokens assigned to each port are consistent between multiple clients of this interface. Otherwise each gets its own mapping from port path to token, which defeats the point. Sensor tests have been updated to not inherit from DeviceServiceTestBase as they do not depend on it and don't initialize it properly. Bug: 908833 Change-Id: Id7ea9ab6368891fe384286fd18c82ca40c842ced Reviewed-on: https://chromium-review.googlesource.com/c/1416535Reviewed-by:Ken Rockot <rockot@google.com> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#625752}
Showing
Please register or sign in to comment