473399ceab24abffbe2d6126d433cab97be6f3a2
Currently, upstream selection is split between the Tethering and UpstreamNetworkMonitor classes. The UpstreamNetworkMonitor bits are unit tested, but there are no tests for the interaction of the two. Add a simple test. In order to do this, remove the code that controls the UpstreamNetworkMonitor spy from prepareUsbTethering. This is so that the new test can call prepareUsbTethering but still rely on the behaviour of the actual UpstreamNetworkMonitor. Bug: 173068192 Test: atest TetheringTests Change-Id: If2ef9af82bc0cbff9172e575ad3d7686e5b492da
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%