summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorDario Freni <dariofreni@google.com>2019-01-21 12:16:04 +0000
committerDario Freni <dariofreni@google.com>2019-01-22 15:58:42 +0000
commita6f1128e09ab826fa7141b364d078d72ffe93e52 (patch)
treec87f4be77c23e5ccc6506cc8ed10a4aab7a40839 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent9f6cfc337116f50823968f2752410f87f56784bd (diff)
Fix the xml parsing of multi-package sessions.
The existing code didn't restore the child sessions, since the XmlPullParser object was advanced within the PackageInstallerSession#readFromXml code (in order to read grant permissions). Slightly refactor the code to make it more self-contained and testable, and adding a test to make sure that the most important bits of a session, or of a group of sessions, are dumped and restored properly. Bug: 118865310 Bug: 109941548 Test: atest FrameworksServicesTests:PackageInstallerSessionTest; verified that install_sessions.xml is correctly written and restored in presence of multi-group sessions. Change-Id: I5aef61f64e7223844f11661ee068dd3c1e112611
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions