/*! UT_InfoWidgetSatHandlerPrivate::t_startObserving */ void UT_InfoWidgetSatHandlerPrivate::t_startObserving() { DPRINT << "IN"; int i = KErrGeneral; expect("RSatService::NotifySetupIdleModeTextChange").returns(i); expect("RSatService::GetSetupIdleModeTextL") .willOnce(invoke(FillData)); m_satHandlerPrivate->startObserving(); expect("RSatService::NotifySetupIdleModeTextChange").returns(i); expect("RSatService::GetSetupIdleModeTextL") .willOnce(invoke(FillDataNoIcon)); m_satHandlerPrivate->startObserving(); expect("RSatService::NotifySetupIdleModeTextChange").returns(i); expect("RSatService::GetSetupIdleModeTextL") .willOnce(invoke(FillDataSelfExplIcon)); m_satHandlerPrivate->startObserving(); expect("RSatService::GetSetupIdleModeTextL") .willOnce(invokeWithoutArguments(SimulateLeaveL)); m_satHandlerPrivate->startObserving(); QVERIFY(verify()); DPRINT << "OUT"; }
/*! UT_PSetCallWaitingWrapper::t_construction */ void UT_PSetCallWaitingWrapper::t_construction() { if (qstrcmp(QTest::currentTestFunction(), "t_exceptionSafety") != 0) { expect("CPsetContainer::CreateCWObjectL"). willOnce(invokeWithoutArguments(SimulateLeaveL)); PSetCallWaitingWrapper *wrapper = NULL; EXPECT_EXCEPTION( wrapper = new PSetCallWaitingWrapper(*m_psetContainerMock, NULL); ) delete wrapper;
/*! UT_InfoWidgetSatHandlerPrivate::t_connect */ void UT_InfoWidgetSatHandlerPrivate::t_connect() { DPRINT << "IN"; expect("RSatSession::ConnectL"); expect("RSatService::OpenL"); m_satHandlerPrivate->connect(); expect("RSatSession::ConnectL") .willOnce(invokeWithoutArguments(SimulateLeaveL)); m_satHandlerPrivate->connect(); expect("RSatService::OpenL") .willOnce(invokeWithoutArguments(SimulateLeaveL)); m_satHandlerPrivate->connect(); QVERIFY(verify()); DPRINT << "OUT"; }