[nearby] Fix the user-debug only test
Test: -m Fix: 273887455 Ignore-AOSP-First: aosp first on Oct (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0f192c89c541536ba45a243b2a21815c7dc4d0bf) Merged-In: I7644a8187c36c944b36f1b4eb741edf46d9b1ad2 Change-Id: I7644a8187c36c944b36f1b4eb741edf46d9b1ad2
This commit is contained in:
committed by
Android Build Cherrypicker Worker
parent
e899d26468
commit
d9da74a98e
@@ -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