messagingapp/msgutils/unidatautils/unidatamodelloader/tsrc/unittest_unidatamodelloader/src/testunidatamodelloader.cpp
author hgs
Tue, 31 Aug 2010 18:53:38 +0530
changeset 56 f42d9a78f435
permissions -rw-r--r--
201033_02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
56
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     1
/*
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     3
 * All rights reserved.
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     8
 *
f42d9a78f435 201033_02
hgs
parents:
diff changeset
     9
 * Initial Contributors:
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    11
 *
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    12
 * Contributors:
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    13
 * 
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    14
 * Description:
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    15
 */
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    16
#include <QtTest/QtTest>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    17
#include <QtDebug>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    18
#include <QTimer>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    19
#include <QSignalSpy>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    20
#include <xqconversions.h>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    21
#include <bsp.h>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    22
#include <biodb.h> 
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    23
#include <biouids.h>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    24
#include <biocmtm.h>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    25
#include "convergedmessageaddress.h"
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    26
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    27
#include "testunidatamodelloader.h"
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    28
#include <unidatamodelloader.h>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    29
#include "testunidatamodelloader.ini"
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    30
#include "unidatamodelplugininterface.h"
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    31
#include <convergedmessage.h>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    32
#include <unieditorplugininterface.h>
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    33
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    34
const TInt KTelephoneNumberMaxLength = 32;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    35
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    36
// vCalender
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    37
_LIT(KUnixEpoch, "19700000:000000.000000");
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    38
#define KBioUidValue  0x10001262
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    39
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    40
const TUid KBioUidValueUid = {KBioUidValue};
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    41
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    42
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    43
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    44
//Main entry point
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    45
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    46
int main(int argc, char *argv[])
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    47
    { 
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    48
    int ret = -1;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    49
    QCoreApplication app(argc, argv);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    50
    QObject* tc = new TestUniDataModelLoader();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    51
    
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    52
#ifdef __WINSCW__	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    53
		char *new_argv[3]; 
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    54
		QString str = "C:\\data\\" + QFileInfo(QCoreApplication::applicationFilePath()).baseName() + ".log";	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    55
		QByteArray bytes = str.toAscii();	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    56
		char arg1[] = "-o";	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    57
		new_argv[0] = argv[0];	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    58
		new_argv[1] = arg1;	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    59
		new_argv[2] = bytes.data();	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    60
		ret = QTest::qExec(tc, 3, new_argv);	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    61
#else	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    62
		ret = QTest::qExec(tc, argc, argv);	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    63
#endif
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    64
	delete tc;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    65
    return ret;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    66
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    67
    }
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    68
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    69
// TestUniDataModelLoader::init
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    70
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    71
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    72
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    73
void TestUniDataModelLoader::initTestCase()
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    74
{
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    75
		iObserver = new (ELeave) MsgObserver();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    76
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    77
	    // Create a new messaging server session..
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    78
	    iMSession = CMsvSession::OpenSyncL(*iObserver);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    79
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    80
	    iMsvEntry = iMSession->GetEntryL(KMsvRootIndexEntryId);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    81
	    newEntryId = 0;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    82
	    pluginLoader = new UniDataModelLoader();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    83
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    84
	    retTimeStamp = QDateTime::currentDateTime();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    85
	    int err = iFs.Connect();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    86
	    QVERIFY(err == 0);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    87
	    iBioDb = CBIODatabase::NewL(iFs);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    88
	    iFs.SetSessionPath(_L("c:\\"));
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    89
	    inbox = EFalse;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    90
}
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    91
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    92
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    93
// TestUniDataModelLoader::cleanupTestCase
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    94
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    95
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    96
void TestUniDataModelLoader::cleanupTestCase()
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    97
{
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    98
	    delete iMsvEntry;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
    99
	    iMsvEntry = NULL;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   100
	    delete iObserver;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   101
	    iObserver = NULL;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   102
	    delete iMSession;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   103
	    iMSession = NULL;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   104
	    delete pluginLoader;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   105
}
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   106
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   107
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   108
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   109
// TestUniDataModelLoader::init
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   110
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   111
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   112
void TestUniDataModelLoader::init()
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   113
{
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   114
    
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   115
}
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   116
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   117
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   118
// TestUniDataModelLoader::cleanup
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   119
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   120
void TestUniDataModelLoader::cleanup()
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   121
{
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   122
  
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   123
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   124
}
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   125
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   126
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   127
// TestUniDataModelLoader::testSMSMessage
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   128
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   129
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   130
void TestUniDataModelLoader::testSMSMessage()
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   131
{
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   132
		QString subject  = TEST_MSG_SUBJECT;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   133
	    qint64 timeStamp = QDateTime::currentDateTime().toTime_t();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   134
	    QString sender(TEST_SENDER);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   135
	    ConvergedMessageAddress address(sender);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   136
	    ConvergedMessage msg;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   137
	    msg.setMessageType(ConvergedMessage::Sms);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   138
	    msg.setSubject(subject);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   139
	    msg.setTimeStamp(timeStamp);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   140
	    msg.addToRecipient(address);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   141
	    msg.setBodyText( TEST_MSG_BODY);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   142
	    msg.setPriority(ConvergedMessage::Normal);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   143
	    //Adding alias
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   144
	    ConvergedMessageAddress address1;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   145
	    address1.setAlias(QString(TEST_MSG_RECIEPIENT));
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   146
	    msg.addToRecipient(address1);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   147
	            
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   148
	    pluginInterface = pluginLoader->getDataModelPlugin(ConvergedMessage::Sms);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   149
	    
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   150
	    QVERIFY( pluginInterface != NULL );
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   151
	    
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   152
	    QString msgType = pluginInterface->messageType();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   153
	   
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   154
	    qDebug() <<"msgType" << msgType;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   155
	    QCOMPARE(msgType, QString("sms"));
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   156
	    
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   157
	    qDebug() <<"UnidataModel Loader for SMS Created Successfully";
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   158
	  	    
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   159
}
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   160
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   161
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   162
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   163
// TestUniDataModelLoader::testMMSMessage
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   164
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   165
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   166
void TestUniDataModelLoader::testMMSMessage()
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   167
{
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   168
        qRegisterMetaType<long int> ("long int");
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   169
        QString service = TEST_SERVICE_NAME_MMS;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   170
        QString subject  = TEST_MSG_SUBJECT;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   171
        qint64 timeStamp = QDateTime::currentDateTime().toTime_t();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   172
        	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   173
        QString sender(TEST_SENDER);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   174
        ConvergedMessageAddress address(sender);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   175
        ConvergedMessageAttachmentList attachmentList;  
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   176
        
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   177
        QString attachment2Path = TEST_ATTACHMENT4;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   178
        	ConvergedMessageAttachment* attachment2 = 
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   179
        			new ConvergedMessageAttachment(attachment2Path, ConvergedMessageAttachment::EAttachment);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   180
        	
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   181
        QString attachmentPath = TEST_ATTACHMENT5;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   182
        ConvergedMessageAttachment* attachment = 
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   183
        		new ConvergedMessageAttachment(attachmentPath, ConvergedMessageAttachment::EAttachment);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   184
        		
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   185
        attachmentList.append(attachment);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   186
        attachmentList.append(attachment2);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   187
        ConvergedMessage msg;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   188
        msg.setMessageType(ConvergedMessage::Mms);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   189
        msg.setSubject(subject);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   190
        msg.setTimeStamp(timeStamp);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   191
        msg.addToRecipient(address);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   192
        msg.addAttachments(attachmentList);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   193
        msg.setPriority(ConvergedMessage::Normal);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   194
        	//Adding alias
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   195
        ConvergedMessageAddress address1;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   196
        address1.setAlias(QString(TEST_MSG_RECIEPIENT));
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   197
        msg.addToRecipient(address1);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   198
      
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   199
        pluginInterface = pluginLoader->getDataModelPlugin(ConvergedMessage::Mms);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   200
        pluginInterface->setMessageId(newEntryId);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   201
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   202
        QVERIFY( pluginInterface != NULL ); 
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   203
        
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   204
        QString msgType = pluginInterface->messageType();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   205
        	   
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   206
        qDebug() <<"msgType" << msgType;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   207
        QCOMPARE(msgType, QString("mms"));
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   208
        
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   209
        qDebug() <<"UnidataModel Loader for MMS Created Successfully";
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   210
     	int count = pluginInterface->attachmentCount();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   211
        QVERIFY(count == 1);        
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   212
        
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   213
} 
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   214
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   215
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   216
// TestUniDataModelLoader::testBioMessage
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   217
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   218
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   219
void TestUniDataModelLoader::testBioMessage()
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   220
{
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   221
		inbox = ETrue;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   222
		pluginInterface = pluginLoader->getDataModelPlugin(ConvergedMessage::BioMsg);
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   223
		
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   224
		QVERIFY( pluginInterface != NULL );
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   225
		
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   226
		QString msgType = pluginInterface->messageType();
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   227
				
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   228
		qDebug() <<"msgType" << msgType;
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   229
		QCOMPARE(msgType, QString("biomessage"));
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   230
		
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   231
		qDebug() <<"UnidataModel Loader for Biomessage Created Successfully";
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   232
		
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   233
		    
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   234
}
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   235
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   236
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   237
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   238
// TestUniDataModelLoader::HandleSessionEventL
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   239
//---------------------------------------------------------------
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   240
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   241
void MsgObserver::HandleSessionEventL(TMsvSessionEvent /*aEvent*/,
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   242
                                      TAny* /*aArg1*/, TAny* /*aArg2*/, TAny* /*aArg3*/)
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   243
{
f42d9a78f435 201033_02
hgs
parents:
diff changeset
   244
}