Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added common/svrblist.cpp for compiling in the unit testing application
[xestiaab/.git]
/
source
/
tests
/
xestiaab_common.h
diff --git
a/source/tests/xestiaab_common.h
b/source/tests/xestiaab_common.h
index
3dafa80
..
8d60863
100644
(file)
--- a/
source/tests/xestiaab_common.h
+++ b/
source/tests/xestiaab_common.h
@@
-19,6
+19,7
@@
#include <gtest/gtest.h>
#include "../common/dirs.h"
#include "../common/filename.h"
#include <gtest/gtest.h>
#include "../common/dirs.h"
#include "../common/filename.h"
+#include "../common/mime.h"
TEST(CommonFunctions, GetUserDir){
TEST(CommonFunctions, GetUserDir){
@@
-224,4
+225,11
@@
TEST(CommonFunctions, CreateFilenamePath){
#endif
#endif
+}
+
+TEST(CommonFunctions, GetMIME){
+
+ ASSERT_EQ("text/plain", GetMIME("TextMIMEExample.txt"));
+ ASSERT_EQ("image/png", GetMIME("PictureMIMEExample.png"));
+
}
\ No newline at end of file
}
\ No newline at end of file
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy