2017-01-09 22:40:21 -05:00
|
|
|
|
2017-06-27 02:11:29 -04:00
|
|
|
pub mod ebml;
|
2018-04-13 19:01:40 -04:00
|
|
|
pub mod error;
|
2019-10-19 16:37:56 -04:00
|
|
|
|
|
|
|
pub mod async_parser;
|
2018-04-04 20:26:02 -04:00
|
|
|
pub mod iterator;
|
2018-04-04 01:36:15 -04:00
|
|
|
pub mod stream_parser;
|
2018-04-04 00:43:25 -04:00
|
|
|
|
2018-04-04 20:26:02 -04:00
|
|
|
pub mod chunk;
|
|
|
|
pub mod fixers;
|
2017-06-27 02:11:29 -04:00
|
|
|
pub mod webm;
|
2017-01-12 00:41:35 -05:00
|
|
|
|
2018-04-09 15:50:51 -04:00
|
|
|
pub mod channel;
|
|
|
|
|
2018-12-22 15:03:19 -05:00
|
|
|
pub use crate::ebml::{EbmlError, FromEbml};
|
2017-01-24 03:20:49 -05:00
|
|
|
|
2017-01-09 22:40:21 -05:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
use futures::future::{ok, Future};
|
2017-06-28 01:54:30 -04:00
|
|
|
|
|
|
|
pub const TEST_FILE: &'static [u8] = include_bytes!("data/test1.webm");
|
2018-04-11 22:45:53 -04:00
|
|
|
pub const ENCODE_WEBM_TEST_FILE: &'static [u8] = include_bytes!("data/encode_webm_test.webm");
|
2017-01-09 22:40:21 -05:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn hello_futures() {
|
|
|
|
let my_future = ok::<String, ()>("Hello".into())
|
|
|
|
.map(|hello| hello + ", Futures!");
|
|
|
|
|
|
|
|
let string_result = my_future.wait().unwrap();
|
|
|
|
|
|
|
|
assert_eq!(string_result, "Hello, Futures!");
|
|
|
|
}
|
|
|
|
}
|