diff options
author | Roshan Pius <rpius@google.com> | 2019-12-02 12:21:52 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2019-12-06 08:07:05 -0800 |
commit | 7cfbd0663d693f756507faa9f98385e1e13e0e8e (patch) | |
tree | e73f22e48a1d06b015acac5e0a7531d62e5f386b /tests | |
parent | e619e603c4487cb980f641589acc2fda23b78e09 (diff) |
WifiService: Don't calculate energyUsed for WifiActivityEnergyInfo
This avoid wifi service from using the @hide PowerProfile class.
Bug: 145533104
Test: Compiles
Change-Id: I96b1ce66bbce08e74386d7f1579e1dd960bb42f4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java index 0a2e42e7d..d45c48e13 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java @@ -309,7 +309,6 @@ public class WifiServiceImplTest extends WifiBaseTest { when(mWifiInjector.getAsyncChannelHandlerThread()).thenReturn(mHandlerThread); when(mWifiInjector.getWifiHandlerThread()).thenReturn(mHandlerThread); when(mHandlerThread.getThreadHandler()).thenReturn(new Handler(mLooper.getLooper())); - when(mWifiInjector.getPowerProfile()).thenReturn(mPowerProfile); when(mHandlerThread.getLooper()).thenReturn(mLooper.getLooper()); when(mContext.getResources()).thenReturn(mResources); when(mContext.getContentResolver()).thenReturn(mContentResolver); @@ -4737,7 +4736,6 @@ public class WifiServiceImplTest extends WifiBaseTest { assertEquals(2, info.getControllerRxDurationMillis()); assertEquals(6, info.getControllerScanDurationMillis()); assertEquals(997, info.getControllerIdleDurationMillis()); - assertEquals(70040, info.getControllerEnergyUsedMicroJoules()); } /** |