[nearby] Fix the user-debug only test am: d9da74a98e am: c6c450345c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871062 Change-Id: I205d2634272222802229b568a26748f77bb03eaa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -288,8 +288,12 @@ public class ChreDiscoveryProviderTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@SdkSuppress(minSdkVersion = 32, codeName = "T")
|
@SdkSuppress(minSdkVersion = 33, codeName = "T")
|
||||||
public void testOnNearbyDeviceDiscoveredWithTestDataElements() {
|
public void testOnNearbyDeviceDiscoveredWithTestDataElements() {
|
||||||
|
// The feature only supports user-debug builds.
|
||||||
|
if (!Build.isDebuggable()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Enables the setting of test app support
|
// Enables the setting of test app support
|
||||||
boolean isSupportedTestApp = getDeviceConfigBoolean(
|
boolean isSupportedTestApp = getDeviceConfigBoolean(
|
||||||
NEARBY_SUPPORT_TEST_APP, false /* defaultValue */);
|
NEARBY_SUPPORT_TEST_APP, false /* defaultValue */);
|
||||||
|
|||||||
Reference in New Issue
Block a user