diff options
Diffstat (limited to 'video/closedcaption/tests')
-rw-r--r-- | video/closedcaption/tests/ccdetect.rs | 5 | ||||
-rw-r--r-- | video/closedcaption/tests/cea608tott.rs | 5 | ||||
-rw-r--r-- | video/closedcaption/tests/mcc_enc.rs | 5 | ||||
-rw-r--r-- | video/closedcaption/tests/mcc_parse.rs | 4 | ||||
-rw-r--r-- | video/closedcaption/tests/scc_enc.rs | 3 | ||||
-rw-r--r-- | video/closedcaption/tests/scc_parse.rs | 4 | ||||
-rw-r--r-- | video/closedcaption/tests/tttocea608.rs | 3 |
7 files changed, 10 insertions, 19 deletions
diff --git a/video/closedcaption/tests/ccdetect.rs b/video/closedcaption/tests/ccdetect.rs index 0123a4dd9..97c215c4a 100644 --- a/video/closedcaption/tests/ccdetect.rs +++ b/video/closedcaption/tests/ccdetect.rs @@ -15,13 +15,12 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -#[macro_use] -extern crate pretty_assertions; - use gst::prelude::*; use std::sync::{Arc, Mutex}; +use pretty_assertions::assert_eq; + fn init() { use std::sync::Once; static INIT: Once = Once::new(); diff --git a/video/closedcaption/tests/cea608tott.rs b/video/closedcaption/tests/cea608tott.rs index 4489d6ac6..dc8916669 100644 --- a/video/closedcaption/tests/cea608tott.rs +++ b/video/closedcaption/tests/cea608tott.rs @@ -15,11 +15,10 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -#[macro_use] -extern crate pretty_assertions; - use gst::prelude::*; +use pretty_assertions::assert_eq; + fn init() { use std::sync::Once; static INIT: Once = Once::new(); diff --git a/video/closedcaption/tests/mcc_enc.rs b/video/closedcaption/tests/mcc_enc.rs index 1fbfe89fd..e0e4d4073 100644 --- a/video/closedcaption/tests/mcc_enc.rs +++ b/video/closedcaption/tests/mcc_enc.rs @@ -15,11 +15,10 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -#[macro_use] -extern crate pretty_assertions; - use glib::prelude::*; +use pretty_assertions::assert_eq; + fn init() { use std::sync::Once; static INIT: Once = Once::new(); diff --git a/video/closedcaption/tests/mcc_parse.rs b/video/closedcaption/tests/mcc_parse.rs index 0ad06ee92..81cad9227 100644 --- a/video/closedcaption/tests/mcc_parse.rs +++ b/video/closedcaption/tests/mcc_parse.rs @@ -15,11 +15,9 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -#[macro_use] -extern crate pretty_assertions; - use gst::prelude::*; use gst::EventView; +use pretty_assertions::assert_eq; use rand::{Rng, SeedableRng}; use std::path::PathBuf; diff --git a/video/closedcaption/tests/scc_enc.rs b/video/closedcaption/tests/scc_enc.rs index 2115156c4..e5d00c90b 100644 --- a/video/closedcaption/tests/scc_enc.rs +++ b/video/closedcaption/tests/scc_enc.rs @@ -16,8 +16,7 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -#[macro_use] -extern crate pretty_assertions; +use pretty_assertions::assert_eq; fn init() { use std::sync::Once; diff --git a/video/closedcaption/tests/scc_parse.rs b/video/closedcaption/tests/scc_parse.rs index cbabccdb0..3e0a449f8 100644 --- a/video/closedcaption/tests/scc_parse.rs +++ b/video/closedcaption/tests/scc_parse.rs @@ -16,11 +16,9 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -#[macro_use] -extern crate pretty_assertions; - use gst::prelude::*; use gst_video::{ValidVideoTimeCode, VideoTimeCode}; +use pretty_assertions::assert_eq; use rand::{Rng, SeedableRng}; use std::collections::VecDeque; diff --git a/video/closedcaption/tests/tttocea608.rs b/video/closedcaption/tests/tttocea608.rs index 8153a246d..24d91e964 100644 --- a/video/closedcaption/tests/tttocea608.rs +++ b/video/closedcaption/tests/tttocea608.rs @@ -15,9 +15,8 @@ // Free Software Foundation, Inc., 51 Franklin Street, Suite 500, // Boston, MA 02110-1335, USA. -#[macro_use] -extern crate pretty_assertions; use gst::EventView; +use pretty_assertions::assert_eq; fn init() { use std::sync::Once; |