--- a/messagingapp/msgui/msguiutils/inc/msgmediautil.h Tue Sep 14 22:54:56 2010 +0530
+++ b/messagingapp/msgui/msguiutils/inc/msgmediautil.h Fri Sep 17 20:01:45 2010 +0530
@@ -18,10 +18,14 @@
#ifndef MSG_MEDIA_UTIL_H
#define MSG_MEDIA_UTIL_H
+#ifdef MSGUI_UNIT_TEST
+ #define MSGUI_UTILS_DLL_EXPORT
+#else
#ifdef BUILD_MSGUI_UTILS_DLL
-#define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT
+ #define MSGUI_UTILS_DLL_EXPORT Q_DECL_EXPORT
#else
-#define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT
+ #define MSGUI_UTILS_DLL_EXPORT Q_DECL_IMPORT
+#endif
#endif
/**
@@ -57,6 +61,13 @@
* @return media duration in miliseconds
*/
TInt mediaDurationL(const TDesC& mediaFile);
+
+#ifdef MSGUI_UNIT_TEST
+ /**
+ * Unit Testing
+ */
+ friend class TestMsgMediaUtil;
+#endif
};
#endif // MSG_MEDIA_UTIL_H