commit | 7ad051ed4c818051c3ce69fdf90aff5307f6a843 | [log] [tgz] |
---|---|---|
author | Antony Sargent <asargent@google.com> | Thu Jun 29 15:23:13 2017 -0700 |
committer | Antony Sargent <asargent@google.com> | Fri Jun 30 09:53:03 2017 -0700 |
tree | dae92168ac1659c074597dd932ebbeefc553ff4d | |
parent | 392ac74f370075eaa396b6b6d08115b27980ab77 [diff] |
Add a convenience method to facilitate tests In app tests (as opposed to RoboTests), we don't have a shadow BluetoothSettings class and can't mock it because it's final, but we need a way to mock out the address of a CachedBluetoothDevice. So this adds a convenience method on CachedBluetoothDevice that can be mocked. Bug: 62447414 Test: (should be covered by other tests) Change-Id: If818d3dcc783b4aa03f7c6d7c441ba44ea980ab7