Test Entitlement when telephony is present

bug: 187331752
Test: atest android.tethering.test.TetheringManagerTest
Change-Id: I9fbb7141691fbbf8685b46359c050e0385928805
This commit is contained in:
Gaurav Sarode
2021-06-11 13:48:59 -07:00
parent a6c06af0fa
commit e0e656c9b3

View File

@@ -361,6 +361,7 @@ public class TetheringManagerTest {
@Test
public void testRequestLatestEntitlementResult() throws Exception {
assumeTrue(mTM.isTetheringSupported());
assumeTrue(mPm.hasSystemFeature(FEATURE_TELEPHONY));
// Verify that requestLatestTetheringEntitlementResult() can get entitlement
// result(TETHER_ERROR_ENTITLEMENT_UNKNOWN due to invalid downstream type) via listener.
assertEntitlementResult(listener -> mTM.requestLatestTetheringEntitlementResult(