phoneapp/phoneuiqtviewadapter/tsrc/ut_phonenotecontroller/unit_tests.cpp
changeset 78 baacf668fe89
parent 76 cfea66083b62
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
    17 
    17 
    18 #include <QtTest/QtTest>
    18 #include <QtTest/QtTest>
    19 #include <QtGui>
    19 #include <QtGui>
    20 #include <hbapplication.h>
    20 #include <hbapplication.h>
    21 #include <QSignalSpy>
    21 #include <QSignalSpy>
       
    22 #include <xqsystemtoneservice.h>
    22 //#include <hbglobal_p.h>
    23 //#include <hbglobal_p.h>
    23 #include "phonenotecontroller.h"
    24 #include "phonenotecontroller.h"
    24 #include "phoneresourceids.h"
    25 #include "phoneresourceids.h"
    25 #include "phoneui.hrh"
    26 #include "phoneui.hrh"
    26 #include "tphonecmdparamglobalnote.h"
    27 #include "tphonecmdparamglobalnote.h"
    72 {
    73 {
    73 }
    74 }
    74 
    75 
    75 void TestPhoneNoteController::initTestCase ()
    76 void TestPhoneNoteController::initTestCase ()
    76 {
    77 {
    77     m_noteController = new PhoneNoteController();
    78     XQSystemToneService* toneservice = new XQSystemToneService(this);
       
    79     m_noteController = new PhoneNoteController(*toneservice);
    78 }
    80 }
    79 
    81 
    80 void TestPhoneNoteController::cleanupTestCase ()
    82 void TestPhoneNoteController::cleanupTestCase ()
    81 {
    83 {
    82     delete m_noteController;
    84     delete m_noteController;