27 */ |
27 */ |
28 |
28 |
29 #ifndef TESTUTILS_H |
29 #ifndef TESTUTILS_H |
30 #define TESTUTILS_H |
30 #define TESTUTILS_H |
31 |
31 |
|
32 #include "test.h" |
|
33 |
32 #include "../public/nsapi.h" |
34 #include "../public/nsapi.h" |
33 #include "../daemon/httprequest.h" |
35 #include "../daemon/httprequest.h" |
34 |
36 |
35 #include "../util/io.h" |
37 #include "../util/io.h" |
36 #include <ucx/buffer.h> |
38 #include <cx/buffer.h> |
37 |
39 |
38 #ifdef __cplusplus |
40 #ifdef __cplusplus |
39 extern "C" { |
41 extern "C" { |
40 #endif |
42 #endif |
41 |
43 |
42 typedef struct TestIOStream { |
44 typedef struct TestIOStream { |
43 HttpStream io; |
45 HttpStream io; |
44 UcxBuffer *buf; |
46 CxBuffer *buf; |
45 } TestIOStream; |
47 } TestIOStream; |
46 |
48 |
47 Session* testutil_session(void); |
49 Session* testutil_session(void); |
48 |
50 |
49 Request* testutil_request(pool_handle_t *pool, const char *method, const char *uri); |
51 Request* testutil_request(pool_handle_t *pool, const char *method, const char *uri); |