182 |
182 |
183 stream->io.st.write = test_io_write; |
183 stream->io.st.write = test_io_write; |
184 stream->io.st.writev = test_io_writev; |
184 stream->io.st.writev = test_io_writev; |
185 stream->io.st.close = test_io_close; |
185 stream->io.st.close = test_io_close; |
186 stream->io.st.finish = test_io_finish; |
186 stream->io.st.finish = test_io_finish; |
|
187 stream->io.st.type = IO_STREAM_TYPE_HTTP; |
187 |
188 |
188 return stream; |
189 return stream; |
189 } |
190 } |
190 |
191 |
191 void testutil_iostream_destroy(TestIOStream *stream) { |
192 void testutil_iostream_destroy(TestIOStream *stream) { |