[asterisk-dev] [Code Review] 3541: res_http_websocket: Create a websocket client
wdoekes
reviewboard at asterisk.org
Thu May 29 16:36:21 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3541/#review12007
-----------------------------------------------------------
Yay for tests!
(And the other changes look good. You still have my ship-it for when you're done.)
trunk/tests/test_uri.c
<https://reviewboard.asterisk.org/r/3541/#comment21944>
Rather verbose, to have one test per uri. And at the same time you don't test the NULL values.
I'd trim this file down to a single ast_uri_parse-test function and use a nice array, similar to this:
char *scenarios[] = {
{"http://name:pass@localhost", "http", "name:pass", "localhost", NULL, NULL, NULL},
{"http://localhost", "http", NULL, "localhost", NULL, NULL, NULL},
...
- wdoekes
On May 29, 2014, 9:14 p.m., Kevin Harwell wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3541/
> -----------------------------------------------------------
>
> (Updated May 29, 2014, 9:14 p.m.)
>
>
> Review request for Asterisk Developers and Joshua Colp.
>
>
> Bugs: ASTERISK-23742
> https://issues.asterisk.org/jira/browse/ASTERISK-23742
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> Add client websocket capabilities to Asterisk.
>
>
> Diffs
> -----
>
> trunk/tests/test_websocket_client.c PRE-CREATION
> trunk/tests/test_uri.c PRE-CREATION
> trunk/res/res_http_websocket.exports.in 414813
> trunk/res/res_http_websocket.c 414813
> trunk/main/uri.c PRE-CREATION
> trunk/main/http.c 414813
> trunk/include/asterisk/uri.h PRE-CREATION
> trunk/include/asterisk/http_websocket.h 414813
> trunk/include/asterisk/http.h 414813
>
> Diff: https://reviewboard.asterisk.org/r/3541/diff/
>
>
> Testing
> -------
>
> Created some unit tests.
>
>
> Thanks,
>
> Kevin Harwell
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140529/53618e3c/attachment-0001.html>
More information about the asterisk-dev
mailing list