summaryrefslogtreecommitdiff
path: root/core/tests/mockingcoretests
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2020-04-23 09:00:10 -0700
committerWinson <chiuwinson@google.com>2020-04-23 09:04:40 -0700
commit0651a247389b5708a30338654e0cf9583f3c2d5c (patch)
treeb45333cabce647f476c40b3a5071663bd0814247 /core/tests/mockingcoretests
parent765276b84116d7ba826bbd4b7315448e1482182d (diff)
Mock sourceDir for ActivityThreadClientTest
This just has to be non-null for the purposes of path generation. The result is thrown away as the mocked LoadedApk doesn't actually support updating its info, so this should have no effect on the test logic. Bug: 154807103 Test: atest android.app.activity.ActivityThreadClientTest Change-Id: Id097a0f3be3c8822e679093347c9a0320fdba13e
Diffstat (limited to 'core/tests/mockingcoretests')
-rw-r--r--core/tests/mockingcoretests/src/android/app/activity/ActivityThreadClientTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/tests/mockingcoretests/src/android/app/activity/ActivityThreadClientTest.java b/core/tests/mockingcoretests/src/android/app/activity/ActivityThreadClientTest.java
index 9018320e479c..0390ac6b8e9c 100644
--- a/core/tests/mockingcoretests/src/android/app/activity/ActivityThreadClientTest.java
+++ b/core/tests/mockingcoretests/src/android/app/activity/ActivityThreadClientTest.java
@@ -210,6 +210,7 @@ public class ActivityThreadClientTest {
info.applicationInfo = new ApplicationInfo();
info.applicationInfo.packageName = info.packageName;
info.applicationInfo.uid = UserHandle.myUserId();
+ info.applicationInfo.sourceDir = "/test/sourceDir";
// mock the function for preventing NPE in emulator environment. The purpose of the
// test is for activity client state changes, we don't focus on the updating for the