Merge "Test Entitlement when telephony is present" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8d75184baf
@@ -361,6 +361,7 @@ public class TetheringManagerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testRequestLatestEntitlementResult() throws Exception {
|
public void testRequestLatestEntitlementResult() throws Exception {
|
||||||
assumeTrue(mTM.isTetheringSupported());
|
assumeTrue(mTM.isTetheringSupported());
|
||||||
|
assumeTrue(mPm.hasSystemFeature(FEATURE_TELEPHONY));
|
||||||
// Verify that requestLatestTetheringEntitlementResult() can get entitlement
|
// Verify that requestLatestTetheringEntitlementResult() can get entitlement
|
||||||
// result(TETHER_ERROR_ENTITLEMENT_UNKNOWN due to invalid downstream type) via listener.
|
// result(TETHER_ERROR_ENTITLEMENT_UNKNOWN due to invalid downstream type) via listener.
|
||||||
assertEntitlementResult(listener -> mTM.requestLatestTetheringEntitlementResult(
|
assertEntitlementResult(listener -> mTM.requestLatestTetheringEntitlementResult(
|
||||||
|
|||||||
Reference in New Issue
Block a user