phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.cpp
changeset 65 2a5d4ab426d3
parent 60 1eef62f5c541
child 76 cfea66083b62
--- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.cpp	Mon Aug 23 15:42:12 2010 +0300
+++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/tsrc/ut_cpplugincommon/ut_cpplugincommon.cpp	Fri Sep 03 13:33:36 2010 +0300
@@ -174,96 +174,6 @@
 }
 
 /*!
-  UT_CpPluginCommon::t_errorCodeTextMapping
- */
-void UT_CpPluginCommon::t_errorCodeTextMapping()
-{
-    QString text = "";
-    Tools::errorCodeTextMapping(KErrGsmSSSubscriptionViolation, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_barring_operation_not_successful"));
-    Tools::errorCodeTextMapping(KErrGsmSSUnknownSubscriber, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_not_allowed"));
-    Tools::errorCodeTextMapping(KErrGsmSSAbsentSubscriber, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_not_allowed"));
-    Tools::errorCodeTextMapping(KErrGsmSSIllegalOperation, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_not_allowed"));
-    Tools::errorCodeTextMapping(KErrGsmSSIllegalSubscriber, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_not_allowed"));
-    Tools::errorCodeTextMapping(KErrGsmSSIllegalEquipment, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_not_allowed"));
-    Tools::errorCodeTextMapping(KErrGsmSSCallBarred, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_not_allowed"));
-    Tools::errorCodeTextMapping(KErrGsmSSDataMissing, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_not_allowed"));
-    Tools::errorCodeTextMapping(KErrGsmSSIncompatibility, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_conflict_error"));
-    Tools::errorCodeTextMapping(KErrGsmSSSystemFailure, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_result_unknown"));
-    Tools::errorCodeTextMapping(KErrGsmSSUnexpectedDataValue, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_request_rejected"));
-    Tools::errorCodeTextMapping(KErrGsmSSResourcesUnavailable, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_request_rejected"));
-    Tools::errorCodeTextMapping(KErrGsmSSNegativePasswordCheck, text);
-    QCOMPARE( text, QString(
-            "Password error"));
-    Tools::errorCodeTextMapping(KErrGsmSSPasswordRegistrationFailure, text);
-    QCOMPARE( text, QString(
-            "Password error"));
-    Tools::errorCodeTextMapping(KErrGsmSSPasswordAttemptsViolation, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_barring_password_blocked"));
-    Tools::errorCodeTextMapping(KErrGsmSMSNoNetworkService, text);
-    QCOMPARE( text, QString(
-            "No network coverage"));
-    Tools::errorCodeTextMapping(KErrGsmNoService, text);
-    QCOMPARE( text, QString(
-            "No network coverage"));
-    Tools::errorCodeTextMapping(KErrSsActivationDataLost, text);
-    QCOMPARE( text, QString(
-            "Check network services"));
-    Tools::errorCodeTextMapping(KErrGsmSSUnknownAlphabet, text);
-    QCOMPARE( text, QString("txt_phone_info_invalid_phone_number"));
-    
-    EXPECT(XQSysInfo, isSupported).returns(false);
-    Tools::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_request_not_completed"));
-    QVERIFY( verify() );
-    
-    EXPECT(XQSysInfo, isSupported).returns(true);
-    EXPECT(XQSettingsManager, readItemValue).returns(QVariant(EBTSapConnected));
-    Tools::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text);
-    QCOMPARE( text, QString(
-            "Operation not possible in SIM access profile mode"));
-    QVERIFY( verify() );
-    
-    EXPECT(XQSysInfo, isSupported).returns(true);
-    EXPECT(XQSettingsManager, readItemValue).returns(QVariant(EBTSapNotConnected));
-    Tools::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text);
-    QCOMPARE( text, QString(
-            "Operation not possible in Off-line mode"));
-    
-    Tools::errorCodeTextMapping(-1, text);
-    QCOMPARE( text, QString(
-            "txt_phone_info_request_not_completed"));
-    
-    QVERIFY( verify() );
-        
-}
-
-/*!
   UT_CpPluginCommon::t_readVtVideoSending
  */
 void UT_CpPluginCommon::t_readVtVideoSending()