android_packages_modules_Co.../Tethering/tests/unit
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Quang Anh Luong db7fdac6d9 Fix WifiManager.startTetheredHotspot mocking
TetheringTest has several tests that rely on starting Wifi tethering,
but do not mock WifiManager.startTetheredHotspot. This causes the
pending Wifi request to be removed, even though the test continues
thinking that the call succeeded and continues mocking Wifi AP events.

Fix this by making sure the mock returns true in setUp(), and only set
it to false when we expect that the call should fail.

Bug: 216524590
Test: atest TetheringTest
Change-Id: Iaf076b9ae64d737a8591c7f41a5552757b47999b
2025-03-17 15:18:29 +09:00
..
common/android/net Add TetheredClient tests 2020-04-23 01:10:19 +00:00
src Fix WifiManager.startTetheredHotspot mocking 2025-03-17 15:18:29 +09:00
Android.bp Merge "Use non-extended mockito for net-tests-utils" into main 2025-03-11 19:00:20 -07:00
AndroidManifest.xml TetheringServiceTest: test caller permission 2020-05-25 12:07:06 +08:00