Merge "Test Entitlement when telephony is present" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-07-02 08:29:15 +00:00
committed by Android (Google) Code Review

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(