Add “allowed units” constraint type

Authored by Lucas_Werkmeister_WMDE on Apr 4 2018, 4:43 PM.


Add “allowed units” constraint type

This constraint type restricts the allowed units for a quantity value.
Unit conversion is attempted on both the value and the allowed units of
the constraint, to minimize the number of violation reports for now
(though this might change later).

Bug: T164372
Change-Id: I8b0060d35b5f56fbaeda30e0e8220dc541da1edf
Depends-On: I8ea741aeb383df3f92f7165772ba0ac9e2c54777
Depends-On: I0b176594537e7c5b30b4d7c6c5bf2adc21093e0a