summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2018-12-10 13:47:59 +0000
committerMathew Inwood <mathewi@google.com>2018-12-11 11:53:10 +0000
commit40ba44348274ac61ac18ef8417d99bb1cfbe759f (patch)
tree2f273caf2723794dfeeceb5fca103f78ccb3a0ae /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentd8ea250a631af2ec854a963edb61603c14a97d41 (diff)
Add key-value mappers for improved safety.
This allows strings to be embedded into the config, which get mapped to a specific value when the config is read. Also add string to integer mappings for the API enforcement policy. Doing this improves safety, as there are no brittle integer values to be kepy in sync across mutliple SDK versions, and between the tools that generate the config and the device. Relying on integer values runs the risk of an unintended policy being applied at runtime. The main risk now is of just generating invalid config which is rejected on the device. Also fix some niggles with null JSON values while we're here. Bug: 110509075 Test: atest SignedConfigTest Change-Id: Iec689c42066d60ca569805bc260ddd0b05890da3
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions