X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftests%2Fxestiaab_common.h;h=8d608637ef689f8baff083362a8b3bcebbbe64f3;hb=896f2b8109083c60a78a02625692cab38cd87b6e;hp=3dafa80926cd6940477baa1b2fa22ab7d9ef1942;hpb=37db4740a4c7b83b25da0450ba95d6de8c1c42ec;p=xestiaab%2F.git diff --git a/source/tests/xestiaab_common.h b/source/tests/xestiaab_common.h index 3dafa80..8d60863 100644 --- a/source/tests/xestiaab_common.h +++ b/source/tests/xestiaab_common.h @@ -19,6 +19,7 @@ #include #include "../common/dirs.h" #include "../common/filename.h" +#include "../common/mime.h" TEST(CommonFunctions, GetUserDir){ @@ -224,4 +225,11 @@ TEST(CommonFunctions, CreateFilenamePath){ #endif +} + +TEST(CommonFunctions, GetMIME){ + + ASSERT_EQ("text/plain", GetMIME("TextMIMEExample.txt")); + ASSERT_EQ("image/png", GetMIME("PictureMIMEExample.png")); + } \ No newline at end of file