25 #include <callinformation.h> |
25 #include <callinformation.h> |
26 #include <MediatorDomainUIDs.h> |
26 #include <MediatorDomainUIDs.h> |
27 #include <telinformationpskeys.h> |
27 #include <telinformationpskeys.h> |
28 #include <coreapplicationuisdomainpskeys.h> |
28 #include <coreapplicationuisdomainpskeys.h> |
29 #include <ccallinfoiter.h> |
29 #include <ccallinfoiter.h> |
|
30 #include <ccallinformation.h> |
30 #include <keyguardaccessapi.h> |
31 #include <keyguardaccessapi.h> |
|
32 #include <phoneuitestmain.h> |
31 #include "phoneuiqtviewif.h" |
33 #include "phoneuiqtviewif.h" |
32 #define private public |
34 #define private public |
33 #include "phonevisibilityhandler.h" |
35 #include "phonevisibilityhandler.h" |
34 #undef public |
36 #undef public |
35 |
37 |
36 int m_callCount = 0; |
38 int m_callCount = 0; |
37 int g_keyGuardEnabled = false; |
39 int g_keyGuardEnabled = false; |
38 int g_enableKeyGuardCalled = false; |
40 int g_enableKeyGuardCalled = false; |
39 int g_disableKeyGuardCalled = false; |
41 int g_disableKeyGuardCalled = false; |
40 |
42 CCallInformation* CCallInformation::NewL() {}; |
41 #define PHONE_TEST_MAIN(TestObject) \ |
43 CCallInfoIter * CCallInfoIter::NewL(class CCallInfos &) {}; |
42 int main(int argc, char *argv[]) \ |
44 |
43 { \ |
45 CCallInformation::CCallInformation() {} |
44 HbApplication app(argc, argv); \ |
46 CCallInformation::~CCallInformation() {} |
45 TestObject tc; \ |
47 CCallInfoIter& CCallInformation::GetCallsL( ){} |
46 QResource::registerResource("../hbcore.rcc"); \ |
|
47 int ret = QTest::qExec(&tc, argc, argv); \ |
|
48 /* Core dump if HbIconLoader instance is not destroyed before the application instance. */ \ |
|
49 /* HbIconLoader uses QCoreApplication::aboutToQuit() signal to destroy itself. */ \ |
|
50 /* app.exec() where the signal is normally emitted is not called here. */ \ |
|
51 /* So, invoking the signal explicitly. */ \ |
|
52 QMetaObject::invokeMethod(&app, "aboutToQuit", Qt::DirectConnection); \ |
|
53 return ret; \ |
|
54 } |
|
55 |
48 |
56 TInt CCallInfoIter::Count() const |
49 TInt CCallInfoIter::Count() const |
57 { |
50 { |
58 return m_callCount; |
51 return m_callCount; |
59 } |
52 } |