equal
deleted
inserted
replaced
24 #include "phoneresourceids.h" |
24 #include "phoneresourceids.h" |
25 #include "phoneui.hrh" |
25 #include "phoneui.hrh" |
26 #include "tphonecmdparamglobalnote.h" |
26 #include "tphonecmdparamglobalnote.h" |
27 #include "tphonecmdparamquery.h" |
27 #include "tphonecmdparamquery.h" |
28 #include "phoneresourceadapter.h" |
28 #include "phoneresourceadapter.h" |
|
29 #include "phoneconstants.h" |
29 |
30 |
30 #define PHONE_QT_NOTE_CONTROLLER_TEST_MAIN(TestObject) \ |
31 #define PHONE_QT_NOTE_CONTROLLER_TEST_MAIN(TestObject) \ |
31 int main(int argc, char *argv[]) \ |
32 int main(int argc, char *argv[]) \ |
32 { \ |
33 { \ |
33 HbApplication app(argc, argv); \ |
34 HbApplication app(argc, argv); \ |
98 } |
99 } |
99 |
100 |
100 void TestPhoneNoteController::testShowGlobalNoteDefault () |
101 void TestPhoneNoteController::testShowGlobalNoteDefault () |
101 { |
102 { |
102 TPhoneCmdParamGlobalNote globalNoteParam; |
103 TPhoneCmdParamGlobalNote globalNoteParam; |
|
104 globalNoteParam.SetTimeout(0); |
103 globalNoteParam.SetWaitForReady(ETrue); |
105 globalNoteParam.SetWaitForReady(ETrue); |
104 |
106 m_noteController->showGlobalNote(&globalNoteParam); |
105 m_noteController->showGlobalNote(&globalNoteParam); |
107 QTest::qWait(2500); |
106 |
108 |
107 QTest::qWait(5000); |
109 globalNoteParam.SetTimeout(KPhoneNoteNoTimeout); |
|
110 m_noteController->showGlobalNote(&globalNoteParam); |
|
111 QTest::qWait(2500); |
108 } |
112 } |
109 |
113 |
110 void TestPhoneNoteController::testShowGlobalInfoNoteWithResourceId () |
114 void TestPhoneNoteController::testShowGlobalInfoNoteWithResourceId () |
111 { |
115 { |
112 TPhoneCmdParamGlobalNote globalNoteParam; |
116 TPhoneCmdParamGlobalNote globalNoteParam; |