tests/test_http_media_cache: Add unit tests for res_http_media_cache
authorMatt Jordan <mjordan@digium.com>
Wed, 30 Dec 2015 16:52:28 +0000 (10:52 -0600)
committerJoshua Colp <jcolp@digium.com>
Wed, 23 Mar 2016 16:53:31 +0000 (13:53 -0300)
commit01962a393250125bb86c638b1786fbcc18a246cc
tree58d1557cb1ea2f3f9efab0c018a6d60107cabf24
parent22e2340813ca1b66d4ec775eb547821a074507ab
tests/test_http_media_cache: Add unit tests for res_http_media_cache

This patch adds unit tests for res_http_media cache, that covers nominal
creation and retrieval - and through them as well, staleness and deletion
checks. In addition, this patch adds tests that covers the interaction of
various HTTP headers, including Expires, Etag, and Cache-Control.

ASTERISK-25654

Change-Id: I2db101e307c863857fe416d6f5bf4cace9ac7cf5
tests/test_http_media_cache.c [new file with mode: 0644]