diff options
author | Scott Mertz <scott@cyngn.com> | 2016-05-19 12:45:23 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-19 15:05:07 -0700 |
commit | 82fcd4aa3bcc2dfccd9ec7950711fa3c10d34830 (patch) | |
tree | 25e31628b37ed4c0545691a63649c77aedaa8d50 /core | |
parent | 52df681309b07d58b10fe58170bfd6df44ac8ca0 (diff) | |
download | frameworks_base-82fcd4aa3bcc2dfccd9ec7950711fa3c10d34830.zip frameworks_base-82fcd4aa3bcc2dfccd9ec7950711fa3c10d34830.tar.gz frameworks_base-82fcd4aa3bcc2dfccd9ec7950711fa3c10d34830.tar.bz2 |
Fix isComponentProtected calls in package manager tests
b9304f9e9abe09a6bfeeaa00ae52d446170bd68a changed the method
signatures. Update the tests to match.
Fixes build issues when building using 'make' only.
TICKET: PAELLA-216 FEIJ-160 FEIJ-177
Change-Id: Ice6bbcd9a953edf3806d80e2669232f627a249e7
Diffstat (limited to 'core')
-rw-r--r-- | core/tests/coretests/src/android/content/pm/PackageManagerTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java index 8b4030a..b0057bb 100644 --- a/core/tests/coretests/src/android/content/pm/PackageManagerTests.java +++ b/core/tests/coretests/src/android/content/pm/PackageManagerTests.java @@ -3854,7 +3854,7 @@ public class PackageManagerTests extends AndroidTestCase { ComponentName testComponentName = new ComponentName("com.android.test", "com.android.test.component.protected"); getPm().setComponentProtectedSetting(testComponentName, true); - assertFalse(getPm().isComponentProtected(testComponentName.getPackageName(), + assertFalse(getPm().isComponentProtected(testComponentName.getPackageName(), getContext().getUserId(), testComponentName)); } @@ -3862,7 +3862,7 @@ public class PackageManagerTests extends AndroidTestCase { ComponentName testComponentName = new ComponentName("com.android.test", "com.android.test.component.protected"); getPm().setComponentProtectedSetting(testComponentName, true); - assertFalse(getPm().isComponentProtected(testComponentName.getPackageName(), + assertFalse(getPm().isComponentProtected(testComponentName.getPackageName(), getContext().getUserId(), testComponentName)); } } |