cellular/telephonysettings/xqbindings/psetwrapper/tsrc/ut_psetnetworkwrapper/ut_psetnetworkwrapper.cpp
--- a/cellular/telephonysettings/xqbindings/psetwrapper/tsrc/ut_psetnetworkwrapper/ut_psetnetworkwrapper.cpp Wed Jun 23 18:49:32 2010 +0300
+++ b/cellular/telephonysettings/xqbindings/psetwrapper/tsrc/ut_psetnetworkwrapper/ut_psetnetworkwrapper.cpp Tue Jul 06 14:53:02 2010 +0300
@@ -309,16 +309,26 @@
HandleNetworkInfoReceivedL(infos, KErrNone));
QVERIFY(KErrArgument == result);
- const TInt KGranularity = 2;
+ const TInt KGranularity = 3;
infos = new CNetworkInfoArray(KGranularity);
QScopedPointer<CNetworkInfoArray> infoArrayGuard(infos);
MPsetNetworkSelect::TNetworkInfo info1;
+ infos->AppendL(info1);
+ TRAP(result, m_wrapper->m_privateImpl->
+ HandleNetworkInfoReceivedL(infos, KErrNone));
+ QVERIFY(KErrNone == result);
+
MPsetNetworkSelect::TNetworkInfo info2;
- infos->AppendL(info1);
infos->AppendL(info2);
TRAP(result, m_wrapper->m_privateImpl->
HandleNetworkInfoReceivedL(infos, KErrNone));
QVERIFY(KErrNone == result);
+
+ MPsetNetworkSelect::TNetworkInfo info3;
+ infos->AppendL(info3);
+ TRAP(result, m_wrapper->m_privateImpl->
+ HandleNetworkInfoReceivedL(infos, KErrNone));
+ QVERIFY(KErrNone == result);
}
@@ -487,4 +497,18 @@
OomTestExecuter::runAllTests(*this, "t_exceptionSafety");
}
+/*!
+ UT_PSetNetworkWrapper::t_isManualNetworkSelectionSupported
+ */
+void UT_PSetNetworkWrapper::t_isManualNetworkSelectionSupported()
+{
+ expect("CPsetCustomerServiceProfile::IsNetworkSelectionSupported").returns(KErrNone);
+ m_wrapper->isManualNetworkSelectionSupported();
+ QVERIFY(verify());
+
+ expect("CPsetCustomerServiceProfile::IsNetworkSelectionSupported").returns(KErrGeneral);
+ m_wrapper->isManualNetworkSelectionSupported();
+ QVERIFY(verify());
+}
+
QTEST_MAIN_S60(UT_PSetNetworkWrapper)