summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2015-09-17 10:28:24 -0700
committerMakoto Onuki <omakoto@google.com>2015-09-22 12:47:44 -0700
commitcc4bbeb76af92a8484fe05f37c4ff412b4c47ccc (patch)
tree4c5ff963790522af7a1660280630cd73881303c7 /tools/aapt2/java/JavaClassGenerator.cpp
parent99c2760ed04fa7fd1b93d7ddbbc67787fe5858f8 (diff)
Make DPM/DPMS unit-testable
- Now all services that DPMS uses are injectable. - Introduce some wrappers to make static methods and final class mockable. (e.g. for Binder.getCallingUid()) - In unit tests we replace those with Mockito mocks, except we use a partial mock for PackageManager, because we use way too many methods of this and most of them are okay to use directly. - To install a partial mock to PackageManager, I needed to make ApplicationPackageManager @hide public non-final. - For a starter, added tests for DPM.setAmin(). Bug 24061108 Change-Id: I2afd51d8bc0038992d5f9be38c686260be775b75
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions