diff -r 1ac40e087278 -r 17af172ffa5f telephonyserverplugins/common_tsy/test/component/src/cctsypacketqosfu.cpp --- a/telephonyserverplugins/common_tsy/test/component/src/cctsypacketqosfu.cpp Thu Jul 15 19:58:53 2010 +0300 +++ b/telephonyserverplugins/common_tsy/test/component/src/cctsypacketqosfu.cpp Thu Aug 19 11:03:36 2010 +0300 @@ -1520,6 +1520,46 @@ AssertMockLtsyStatusL(); ASSERT_EQUALS(KErrCancel, requestNotify.Int()); + //------------------------------------------------------------------------- + // Test change of profile in the LTSY when the Notification request has + // been cancelled by the client + //------------------------------------------------------------------------- + RPacketQoS::TQoSR5Negotiated qosR5Negotiated; + TPckg< RPacketQoS::TQoSR5Negotiated > pckgQoSR5Negotiated(qosR5Negotiated); + + ChangeProfileDataL(packetContext, packetQoS, contextName, data); + + TRequestStatus requestGet; + packetQoS.GetProfileParameters(requestGet, pckgQoSR5Negotiated); + + User::WaitForRequest(requestGet); + AssertMockLtsyStatusL(); + ASSERT_EQUALS(KErrNone, requestGet.Int()); + + ASSERT_EQUALS(qosR5Negotiated.iSignallingIndication , 1 ); + ASSERT_EQUALS(qosR5Negotiated.iSourceStatisticsDescriptor , RPacketQoS::ESourceStatisticsDescriptorSpeech); + ASSERT_EQUALS(qosR5Negotiated.iTrafficClass , RPacketQoS::ETrafficClassStreaming ); + ASSERT_EQUALS(qosR5Negotiated.iDeliveryOrderReqd , RPacketQoS::EDeliveryOrderRequired ); + ASSERT_EQUALS(qosR5Negotiated.iDeliverErroneousSDU , RPacketQoS::EErroneousSDUDeliveryRequired ); + ASSERT_EQUALS(qosR5Negotiated.iMaxSDUSize , 0x100 ); + ASSERT_EQUALS(qosR5Negotiated.iMaxRate.iUplinkRate , 10000 ); + ASSERT_EQUALS(qosR5Negotiated.iMaxRate.iDownlinkRate , 10000 ); + ASSERT_EQUALS(qosR5Negotiated.iBER , RPacketQoS::EBEROnePerHundredThousand ); + ASSERT_EQUALS(qosR5Negotiated.iSDUErrorRatio , RPacketQoS::ESDUErrorRatioOnePerTenThousand ); + ASSERT_EQUALS(qosR5Negotiated.iTrafficHandlingPriority , RPacketQoS::ETrafficPriority2 ); + ASSERT_EQUALS(qosR5Negotiated.iTransferDelay , 1000 ); + ASSERT_EQUALS(qosR5Negotiated.iGuaranteedRate.iDownlinkRate, 1000 ); + ASSERT_EQUALS(qosR5Negotiated.iGuaranteedRate.iUplinkRate , 1000 ); + + TRequestStatus requestNotify1; + packetQoS.NotifyProfileChanged(requestNotify1, pckgQoSGPRSNegotiated); + + ChangeProfileDataL(packetContext, packetQoS, contextName, data); + + User::WaitForRequest(requestNotify1); + AssertMockLtsyStatusL(); + ASSERT_EQUALS(KErrNone, requestNotify1.Int()); + CleanupStack::PopAndDestroy(3); // packetService, packetContext, packetQoS CleanupStack::PopAndDestroy(2); // data, this