diff options
| author | 2020-06-19 03:04:46 +0000 | |
|---|---|---|
| committer | 2020-06-19 03:06:05 +0000 | |
| commit | 83f6a384cb775b94f87504da84a7c7d36cac5479 (patch) | |
| tree | a2c5f846a259a4b8ec6f58e2ee21a02c1374ce19 | |
| parent | 8bcf198c670593f132dc10c7f2e6a8aa1b2cea54 (diff) | |
Test that IpNeighborMonitor is stopped when IpServer stops.
Bug: 159097215
Test: test-only change
Original-Change: https://android-review.googlesource.com/1343441
Merged-In: I2292c1cbff06a304f70191b88d833b19af2b8b92
Change-Id: I2292c1cbff06a304f70191b88d833b19af2b8b92
| -rw-r--r-- | packages/Tethering/tests/unit/src/android/net/ip/IpServerTest.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/Tethering/tests/unit/src/android/net/ip/IpServerTest.java b/packages/Tethering/tests/unit/src/android/net/ip/IpServerTest.java index c65069c54490..30a9d2252ea6 100644 --- a/packages/Tethering/tests/unit/src/android/net/ip/IpServerTest.java +++ b/packages/Tethering/tests/unit/src/android/net/ip/IpServerTest.java @@ -860,6 +860,7 @@ public class IpServerTest { verify(mBpfCoordinator).tetherOffloadRuleClear(mIpServer); verify(mNetd).tetherOffloadRuleRemove(matches(UPSTREAM_IFINDEX, neighA, macA)); verify(mNetd).tetherOffloadRuleRemove(matches(UPSTREAM_IFINDEX, neighB, macB)); + verify(mIpNeighborMonitor).stop(); resetNetdAndBpfCoordinator(); } |