Move mime classifier resources near the test.

This commit is contained in:
Ms2ger 2015-04-16 11:12:32 +02:00
parent 4cc4e210b4
commit 306da57b07
102 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 14 B

After

Width:  |  Height:  |  Size: 14 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Some files were not shown because too many files have changed in this diff Show more