calendarui/tsrc/unittest_calencommonutils/src/main.cpp
author hgs
Tue, 05 Oct 2010 13:57:00 +0530
changeset 81 ce92091cbd61
parent 45 b6db4fd4947b
permissions -rw-r--r--
201039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
45
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
// System includes
hgs
parents:
diff changeset
    19
#include <QTest>
hgs
parents:
diff changeset
    20
#include <hbapplication.h>
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
// User includes
hgs
parents:
diff changeset
    23
#include "test_calenagendautils.h"
hgs
parents:
diff changeset
    24
#include "test_calendateutils.h"
hgs
parents:
diff changeset
    25
81
hgs
parents: 45
diff changeset
    26
//int main(int argc, char *argv[])
hgs
parents: 45
diff changeset
    27
//{
hgs
parents: 45
diff changeset
    28
//	HbApplication app(argc, argv);
hgs
parents: 45
diff changeset
    29
//	
hgs
parents: 45
diff changeset
    30
//	TestCalenDateUtils testDateUtils;
hgs
parents: 45
diff changeset
    31
//	
hgs
parents: 45
diff changeset
    32
//	 char *args[3];	
hgs
parents: 45
diff changeset
    33
//	 args[0] = argv[0];
hgs
parents: 45
diff changeset
    34
//	 args[1] = "-o";	
hgs
parents: 45
diff changeset
    35
//	 args[2] = "c:\\data\\TestCalenDateUtils.txt";
hgs
parents: 45
diff changeset
    36
// 
hgs
parents: 45
diff changeset
    37
//	int retDateUtils = QTest::qExec(&testDateUtils, 3, args);
hgs
parents: 45
diff changeset
    38
//	
hgs
parents: 45
diff changeset
    39
//	
hgs
parents: 45
diff changeset
    40
//	TestCalenAgendaUtils testAgendaUtils;
hgs
parents: 45
diff changeset
    41
//	
hgs
parents: 45
diff changeset
    42
//	args[2] = "c:\\data\\TestCalenAgendaUtils.txt";
hgs
parents: 45
diff changeset
    43
//	
hgs
parents: 45
diff changeset
    44
//	int retAgendaUtils = QTest::qExec(&testAgendaUtils, 3, args);
hgs
parents: 45
diff changeset
    45
//	
hgs
parents: 45
diff changeset
    46
//	// Core dump if HbIconLoader instance is not destroyed before the
hgs
parents: 45
diff changeset
    47
//	// application instance. HbIconLoader uses QCoreApplication::aboutToQuit()
hgs
parents: 45
diff changeset
    48
//	// signal to destroy itself. app.exec() where the signal is normally emitted
hgs
parents: 45
diff changeset
    49
//	// is not called here. So, invoking the signal explicitly.
hgs
parents: 45
diff changeset
    50
//	QMetaObject::invokeMethod(&app, "aboutToQuit", Qt::DirectConnection);
hgs
parents: 45
diff changeset
    51
//	
hgs
parents: 45
diff changeset
    52
//	return (retDateUtils && retAgendaUtils);
hgs
parents: 45
diff changeset
    53
//}
hgs
parents: 45
diff changeset
    54
hgs
parents: 45
diff changeset
    55
QTEST_MAIN ( TestCalenDateUtils )
45
hgs
parents:
diff changeset
    56
hgs
parents:
diff changeset
    57
// End of file	--Don't remove this.