]> git.ipfire.org Git - thirdparty/asterisk.git/commit
tests/test_devicestate: Add additional tests for the device state API 70/870/1
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 16:24:58 +0000 (11:24 -0500)
commit2325b106fd61817d6be65195b5568945cd5e3084
tree0f4389cf553d3f8c25c48520a1aa201186f441b2
parent328f0be806cc8236288c8760007ab149a865a196
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