summaryrefslogtreecommitdiff
path: root/ravenwood/junit-src
diff options
context:
space:
mode:
author Felipe Leme <felipeal@google.com> 2024-07-23 05:31:38 +0000
committer Felipe Leme <felipeal@google.com> 2024-07-24 22:35:13 +0000
commitdfbfb231d3525355454decac4082d6689e654387 (patch)
tree88558056fd7b45e69d38870da4cc9521f5dd49eb /ravenwood/junit-src
parentf491ad5e289229b54656cf088b16d31c9830fe1e (diff)
Changed ravenwood-junit to use module_current
Otherwise it cannot be used by mainline modules. Test: atest --host AdServicesSharedLibrariesUnitTestsRavenwood Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Bug: 335935200 Flag: TEST_ONLY Change-Id: I75fc6f919ba7e45eb2fec825a2adc499a6be1b4f Merged-In: I75fc6f919ba7e45eb2fec825a2adc499a6be1b4f
Diffstat (limited to 'ravenwood/junit-src')
-rw-r--r--ravenwood/junit-src/android/platform/test/ravenwood/RavenwoodRule.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/ravenwood/junit-src/android/platform/test/ravenwood/RavenwoodRule.java b/ravenwood/junit-src/android/platform/test/ravenwood/RavenwoodRule.java
index 68b5aebe9c00..825c91a1b6dc 100644
--- a/ravenwood/junit-src/android/platform/test/ravenwood/RavenwoodRule.java
+++ b/ravenwood/junit-src/android/platform/test/ravenwood/RavenwoodRule.java
@@ -18,7 +18,7 @@ package android.platform.test.ravenwood;
import static android.os.Process.FIRST_APPLICATION_UID;
import static android.os.Process.SYSTEM_UID;
-import static android.os.UserHandle.USER_SYSTEM;
+import static android.os.UserHandle.SYSTEM;
import static org.junit.Assert.fail;
@@ -115,7 +115,7 @@ public class RavenwoodRule implements TestRule {
private static final AtomicInteger sNextPid = new AtomicInteger(100);
- int mCurrentUser = USER_SYSTEM;
+ int mCurrentUser = SYSTEM.getIdentifier();
/**
* Unless the test author requests differently, run as "nobody", and give each collection of