summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2018-08-09 16:12:42 -0700
committerMichael Groover <mpgroover@google.com>2018-08-16 17:59:45 +0000
commitccf15f79f08f2c96cffdc46c4f357d3a545df08e (patch)
treee7418308fbded002b3fabb0f745f7d5fa024aaff /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent7955aec0eaf725f300f2cd79d0beda56e33971a7 (diff)
Resolve NPE and unexpected error code in AccountManagerServiceTest
ag/3915086 modified AccountManagerService to use the PackageManagerInternal returned from LocalServices. However when AccountManagerServiceTest runs tests against AccountManagerService it is using a local instance of the object which does not have access to system's local PackageManagerInternal. To resolve this a mock PackageManagerInternal is added to the LocalServices with a mocked hasSignatureCapability that returns an appropriate response based on the test. This fix also exposed an issue that appears to be introduced by ag/2959363; with the change in checkKeyIntent to no longer throw a SecurityException the expected return code for error paths is now AccountManager.ERROR_CODE_REMOTE_EXCEPTION. A small change was also added to AccountsDbTest to skip testCeNotAvailableInitially on eng builds as the Log.wtf would crash the test process when invoked on eng builds. Test: adb shell am instrument -w -e package com.android.server.accounts \ com.android.frameworks.servicestests/\ android.support.test.runner.AndroidJUnitRunner Bug: 80380639 Change-Id: I9438550d1c19cc86ec56991da766d71e068784ab Merged-In: I9438550d1c19cc86ec56991da766d71e068784ab
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions