]> git.ipfire.org Git - thirdparty/asterisk.git/commit
tests/test_devicestate: Add additional tests for the device state API 83/783/2
authorMatt Jordan <mjordan@digium.com>
Sat, 27 Jun 2015 22:53:37 +0000 (17:53 -0500)
committerMatt Jordan <mjordan@digium.com>
Sat, 11 Jul 2015 14:59:49 +0000 (09:59 -0500)
commit883f6f5d21f11f6005e80e6cb35335be0c904294
tree8424e0fcebf747e32898e9cc7c59070ea792c159
parente545c05e35700590c9e7684ba5be0b414d6d2a73
tests/test_devicestate: Add additional tests for the device state API

This patch adds more tests that exercise the device state API. This includes:

* Tests that cover adding a device state provider, as well as deleting a
  device state provider. This also verifies that you cannot add an
  already added device state provider, and cannot delete an already
  deleted device state provider.
* A test that covers changing device state and receiving said updates
  from a device state subscriber. This also covers hitting both the
  device state cache as well as a custom device state provider.
* A test that covers converting device state to channel state and device
  state values to a string representation and back.
* A test that covers obtaining device state from an active channel and a
  channel driver that provides its own device state.

Change-Id: I2adca67ffb405cd8625a5d6df1e3f9b3d945c08d
tests/test_devicestate.c