summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-12-11 01:40:07 -0800
committerTom Cherry <tomcherry@google.com>2018-01-16 14:44:40 -0800
commit927c5d5fdc46eb60c28e569a922659733d927ada (patch)
treef24924d114a787afda709db0dee2039d3a0bb7ee /trusty/coverage/coverage_test.cpp
parent4ba3ebbc2f8820741003a36b7ca6c545333f1627 (diff)
Introduce property types
Properties right now can take any format, but that makes it hard to specify an API for these properties as Treble intends to do. Therefore this change introduces the idea of property types, described below. 1) 'string' this is the default type and allows any property to be set. 2) 'bool' this allows only boolean values (true|false|1|0) 3) 'int' and 'uint' these allow signed and unsigned integer values respectively. 4) 'double' this allows floating point numbers with double precision. 5) 'size' this allows for strings matching [0-9]+[gkm]. 6) 'enum' this allows only a specific set of space deliminated values to be set, e.g. 'enum allow these strings' only allows one of 'allow', 'these', or 'strings' to be set. Bug: 70858511 Test: unit tests, test that properties are only set if their type matches Change-Id: I7a6b00fb43ec630d1f56c9e9a1f1b61d3914f603
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions