Merge "Hide subtitle for wifi and bluetooth" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4b50e58a1d
@@ -278,6 +278,20 @@ public class PowerUsageAdvancedTest {
|
||||
assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShouldHideSummary_typeWifi_returnTrue() {
|
||||
mPowerUsageData.usageType = UsageType.WIFI;
|
||||
|
||||
assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShouldHideSummary_typeBluetooth_returnTrue() {
|
||||
mPowerUsageData.usageType = UsageType.BLUETOOTH;
|
||||
|
||||
assertThat(mPowerUsageAdvanced.shouldHideSummary(mPowerUsageData)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShouldHideSummary_typeNormal_returnFalse() {
|
||||
mPowerUsageData.usageType = UsageType.APP;
|
||||
|
Reference in New Issue
Block a user