47 info->name =
"format_cache_set";
48 info->category =
"/main/format_cache/";
49 info->summary =
"format cache add unit test";
51 "Test that adding of a cached format succeeds";
84 info->name =
"format_cache_set_duplicate";
85 info->category =
"/main/format_cache/";
86 info->summary =
"format cache add unit test";
88 "Test that adding of a cached format multiple times succeeds";
126 info->name =
"format_cache_set_null";
127 info->category =
"/main/format_cache/";
128 info->summary =
"format cache add unit test";
130 "Test that adding a NULL or empty format to the cache does not succeed";
164 info->name =
"format_cache_get";
165 info->category =
"/main/format_cache/";
166 info->summary =
"format cache get unit test";
168 "Test that getting of a cached format succeeds";
195 }
else if (cached != format) {
211 info->name =
"format_cache_get_nonxistent";
212 info->category =
"/main/format_cache/";
213 info->summary =
"format cache get unit test";
215 "Test that getting of a non-existent cached format does not succeed";
Asterisk main include file. File version handling, generic pbx functions.
struct ast_codec * ast_codec_get(const char *name, enum ast_media_type type, unsigned int sample_rate)
Retrieve a codec given a name, type, and sample rate.
Asterisk module definitions.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
#define ASTERISK_GPL_KEY
The text the key() function should return.
@ AST_MODULE_LOAD_SUCCESS
Represents a media codec within Asterisk.
#define AST_TEST_REGISTER(cb)
#define ast_test_status_update(a, b, c...)
#define AST_TEST_UNREGISTER(cb)
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.