OSDN Git Service

Merge "Make anomaly item refresh in battery" into oc-dr1-dev
[android-x86/packages-apps-Settings.git] / tests / robotests / src / com / android / settings / fuelgauge / PowerUsageSummaryTest.java
index 0991570..075cbdc 100644 (file)
@@ -485,9 +485,9 @@ public class PowerUsageSummaryTest {
         doReturn(mAnomalyDetectionPolicy).when(mFragment).getAnomalyDetectionPolicy();
         when(mAnomalyDetectionPolicy.isAnomalyDetectionEnabled()).thenReturn(true);
 
-        mFragment.initAnomalyDetectionIfPossible();
+        mFragment.restartAnomalyDetectionIfPossible();
 
-        verify(mLoaderManager).initLoader(eq(PowerUsageSummary.ANOMALY_LOADER), eq(Bundle.EMPTY),
+        verify(mLoaderManager).restartLoader(eq(PowerUsageSummary.ANOMALY_LOADER), eq(Bundle.EMPTY),
                 any());
     }