Skip to content
  • Alex Ashley's avatar
    tests: curlhttpsrc: add unit tests · d2d912f3
    Alex Ashley authored and Tim-Philipp Müller's avatar Tim-Philipp Müller committed
    Based upon the souphttpsrc tests, add unit tests for the curlhttpsrc
    element. The souphttpsrc tests are able to use an HTTP server that
    is provided as part of the soup library. This does not exist in the
    curl library, therefore these tests provide a very simple HTTP server
    using the GIO library.
    
    These curlhttpsrc tests contain one new test that does not come from
    the souphttpsrc tests. The test_multiple_http_requests test tries to
    reproduce the way in which GstAdaptiveDemux makes use of URI source
    elements. GstAdaptiveDemux creates a bin with the httpsrc element
    and a queue element and sets the locked state of that bin to TRUE,
    so that it does not follow the state transitions of its parent. It
    then moves this bin to the PLAYING state to start each download and
    back to READY when the download completes.
    d2d912f3