[Android] Make BatteryStatusManagerTest compilable on M
commit2f08ccf895d5c96019da0cd6cfea23cb6b34c18f
authortimvolodine <timvolodine@chromium.org>
Wed, 20 May 2015 10:43:41 +0000 (20 03:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 20 May 2015 10:43:50 +0000 (20 10:43 +0000)
tree4b40ab633f1b3c5b3d6b6c329c89405673f54084
parent8fd5dec944a738dc67f514130a94a6837ba33c5b
[Android] Make BatteryStatusManagerTest compilable on M

BatteryStatusManagerTest does not compile on M because of the
changes to the BatteryManager class. This patch introduces
AndroidBatteryManagerWrapper to make the system battery manager
testable on M.

BUG=488690

Review URL: https://codereview.chromium.org/1130253012

Cr-Commit-Position: refs/heads/master@{#330723}
device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java
device/battery/android/javatests/src/org/chromium/device/battery/BatteryStatusManagerTest.java