Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea50c00f authored by Erik Kline's avatar Erik Kline Committed by android-build-merger
Browse files

Merge "Verify duplicate upstream notifications are ignored" am: 3d57eb0b am:...

Merge "Verify duplicate upstream notifications are ignored" am: 3d57eb0b am: 02e71f62 am: 8055dafb
am: d8508047

Change-Id: I56a8b708178419d467abac0166f1be6c86b42491
parents 6bf2e108 d8508047
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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.
     *