Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Validation of KeysConfig and KeysMapping

Porting Validation Suite (PVS) contains the CTFKeysMappingTest and CTFKeysConfigTest modules, to validate the porting of IKeysMapping and IKeysConfig respectively.

CTFKeysConfigTest

Use this PVS CTF module for KeysConfig validation. It verifies the implementation of the IKeysConfig.

Test case TestStickyKeys

Tests each sticky key present on the handset. Changes and reads the state of sticky keys via IKeysConfig and verifies that the changes are being reflected in the actual state of these keys changing on the handset.

CTFKeysMappingTest

Use this PVS CTF module for KeysMapping validation. It verifies the implementation of the IkeysMapping interface along with the port of the keys mapping file (map.csv).

Test case TestMappings:verifies that:

  • mappings returned match the map.csv file
  • mappings match the mappings that are being returned by the IKeysMapping
  • IKeysMapping interface can be instantiated and used correctly