mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-19 15:39:46 +00:00
Move mediatypes.hpp/cpp to machinery.
This was needed so that machinery wouldn't depend on common. Also moved compatibility.h to helpers include dir. Ideally mediatypes.hpp will be merged into mediatype.hpp, or there will be some kind of renaming because the two names are getting really confusing.
This commit is contained in:
parent
6ddf79fad9
commit
1956594c01
19 changed files with 48 additions and 53 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
namespace {
|
||||
template <std::size_t N>
|
||||
void detect_type (mchlib::FileRecordData (&parTestData)[N], mchlib::ContentTypes parExpected, dinlib::MediaTypes parMediaType) {
|
||||
void detect_type (mchlib::FileRecordData (&parTestData)[N], mchlib::ContentTypes parExpected, mchlib::MediaTypes parMediaType) {
|
||||
using mchlib::SetListing;
|
||||
using mchlib::FileRecordData;
|
||||
|
||||
|
@ -52,7 +52,7 @@ TEST(machinery, guess_content_type) {
|
|||
FileRecordData("VIDEO_TS/VTS_01_0.VOB",0,0,2,false,false),
|
||||
FileRecordData("VIDEO_TS/VIDEO_TS.VOB",0,0,2,false,false)
|
||||
};
|
||||
detect_type(test_data, mchlib::ContentType_VideoDVD, dinlib::MediaType_DVD);
|
||||
detect_type(test_data, mchlib::ContentType_VideoDVD, mchlib::MediaType_DVD);
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ TEST(machinery, guess_content_type) {
|
|||
FileRecordData("some_file.bin",0,0,1,false,false),
|
||||
FileRecordData("another_dir/VTS_01_0.BUP",0,0,2,false,false)
|
||||
};
|
||||
detect_type(test_data, mchlib::ContentType_Generic, dinlib::MediaType_Directory);
|
||||
detect_type(test_data, mchlib::ContentType_Generic, mchlib::MediaType_Directory);
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -81,6 +81,6 @@ TEST(machinery, guess_content_type) {
|
|||
FileRecordData("CDI",0,0,1,true,false),
|
||||
FileRecordData("KARAOKE",0,0,1,true,false)
|
||||
};
|
||||
detect_type(test_data, mchlib::ContentType_VideoCD, dinlib::MediaType_CDRom);
|
||||
detect_type(test_data, mchlib::ContentType_VideoCD, mchlib::MediaType_CDRom);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue