Wipe the data in IpMemoryStore database upon network factory reset.
Bug:128499160 Test: manual Test: atest FrameworksNetTests NetworkStackTests Change-Id: Ib563463a861a5d27b1e9b5fbb92342249b573802
This commit is contained in:
@@ -321,4 +321,11 @@ public class IpMemoryStoreTest {
|
||||
eq(TEST_OTHER_DATA_NAME), any());
|
||||
assertEquals(TEST_NETWORK_ATTRIBUTES, new NetworkAttributes(mNapCaptor.getValue()));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFactoryReset() throws RemoteException {
|
||||
startIpMemoryStore(true /* supplyService */);
|
||||
mStore.factoryReset();
|
||||
verify(mMockService, times(1)).factoryReset();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user