Merge "Test Entitlement when telephony is present"

This commit is contained in:
Treehugger Robot 2021-07-02 04:28:18 +00:00 • committed by Gerrit Code Review
commit 93773f0aa0

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(