Merge "Test Entitlement when telephony is present" into sc-dev am: 8d75184baf

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14947613

Change-Id: I784138f5eef0b99a338fe28724f9002b5ae13bbb
This commit is contained in:
TreeHugger Robot
2021-07-02 08:51:35 +00:00
committed by Automerger Merge Worker

View File

@@ -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(