Move mime classifier resources near the test.
|
@ -12,7 +12,7 @@ use net::mime_classifier::as_string_option;
|
||||||
fn test_sniff_mp4_matcher() {
|
fn test_sniff_mp4_matcher() {
|
||||||
let matcher = Mp4Matcher;
|
let matcher = Mp4Matcher;
|
||||||
|
|
||||||
let p = Path::new("../../tests/content/parsable_mime/video/mp4/test.mp4");
|
let p = Path::new("../../tests/unit/net/parsable_mime/video/mp4/test.mp4");
|
||||||
let mut file = File::open(&p);
|
let mut file = File::open(&p);
|
||||||
let read_result = file.read_to_end();
|
let read_result = file.read_to_end();
|
||||||
match read_result {
|
match read_result {
|
||||||
|
@ -32,7 +32,7 @@ fn test_sniff_full(filename_orig: &Path,type_string: &str,subtype_string: &str,
|
||||||
let current_working_directory = os::getcwd().unwrap();
|
let current_working_directory = os::getcwd().unwrap();
|
||||||
println!("The current directory is {}", current_working_directory.display());
|
println!("The current directory is {}", current_working_directory.display());
|
||||||
|
|
||||||
let mut filename = Path::new("../../tests/content/parsable_mime/");
|
let mut filename = Path::new("../../tests/unit/net/parsable_mime/");
|
||||||
|
|
||||||
filename.push(filename_orig);
|
filename.push(filename_orig);
|
||||||
let classifier = MIMEClassifier::new();
|
let classifier = MIMEClassifier::new();
|
||||||
|
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 14 B After Width: | Height: | Size: 14 B |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |