Merge "Verify duplicate upstream notifications are ignored" am: 3d57eb0bdc am: 02e71f6245
am: 8055dafb08
Change-Id: I1e10adfba2ebb9f52e86d8b35f3d0b87134c0e91
This commit is contained in:
@@ -294,6 +294,18 @@ public class TetherInterfaceStateMachineTest {
|
||||
IFACE_NAME, mTestedSm, STATE_AVAILABLE, TETHER_ERROR_ENABLE_NAT_ERROR);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ignoresDuplicateUpstreamNotifications() throws Exception {
|
||||
initTetheredStateMachine(TETHERING_WIFI, UPSTREAM_IFACE);
|
||||
|
||||
verifyNoMoreInteractions(mNMService, mStatsService, mTetherHelper);
|
||||
|
||||
for (int i = 0; i < 5; i++) {
|
||||
dispatchTetherConnectionChanged(UPSTREAM_IFACE);
|
||||
verifyNoMoreInteractions(mNMService, mStatsService, mTetherHelper);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a command to the state machine under test, and run the event loop to idle.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user