phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/unit_tests.cpp
changeset 45 6b911d05207e
parent 21 92ab7f8d0eab
child 74 d1c62c765e48
--- a/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/unit_tests.cpp	Fri Jun 04 10:19:18 2010 +0100
+++ b/phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/unit_tests.cpp	Wed Jun 23 18:12:20 2010 +0300
@@ -27,6 +27,7 @@
 
 extern bool m_modifyMenuCommandListCalled;
 extern bool m_modifyPushButtonCommandListCalled;
+extern bool m_modifyToolBarCommandListCalled;
 extern bool m_addMenuActionsCalled;
 extern bool m_releaseMenuCalled;
 extern bool m_releaseCalled;
@@ -105,6 +106,7 @@
     QList<XQTelUiCommandExtension::CallInfo> callInfo; 
     QList<int> menuCmdList;
     QList<HbAction*> menuActions;
+    QList<XQTelUiCommandExtension::ToolBarCommand> toolBar;
     m_useExtensionStub = false;
     m_wrapper = new PhoneCommandExtensionWrapper(123456);
     
@@ -113,6 +115,9 @@
     
     m_wrapper->modifyPushButtonCommandList(callInfo, menuCmdList);
     QVERIFY( false == m_modifyPushButtonCommandListCalled );
+   
+    m_wrapper->modifyToolBarCommandList(callInfo, toolBar);
+    QVERIFY( false == m_modifyToolBarCommandListCalled );
     
     m_wrapper->addMenuActions(callInfo, menuActions);
     QVERIFY( false == m_addMenuActionsCalled );
@@ -130,6 +135,7 @@
     QList<XQTelUiCommandExtension::CallInfo> callInfo; 
     QList<int> menuCmdList;
     QList<HbAction*> menuActions;
+    QList<XQTelUiCommandExtension::ToolBarCommand> toolBar;
     m_useExtensionStub = true;
     m_wrapper = new PhoneCommandExtensionWrapper(123456);
     
@@ -141,6 +147,9 @@
     m_wrapper->modifyPushButtonCommandList(callInfo, menuCmdList);
     QVERIFY( m_modifyPushButtonCommandListCalled );
     
+    m_wrapper->modifyToolBarCommandList(callInfo, toolBar);
+    QVERIFY( m_modifyToolBarCommandListCalled );
+    
     m_wrapper->addMenuActions(callInfo, menuActions);
     QVERIFY( m_addMenuActionsCalled );