telephonyserverplugins/common_tsy/test/component/src/cctsypacketqosfu.cpp
changeset 62 8ef833fbf5aa
parent 0 3553901f7fa8
child 58 980b3d0c4069
equal deleted inserted replaced
49:f50f4094acd7 62:8ef833fbf5aa
  1517     packetQoS.CancelAsyncRequest(EPacketQoSNotifyProfileChanged);
  1517     packetQoS.CancelAsyncRequest(EPacketQoSNotifyProfileChanged);
  1518 
  1518 
  1519 	User::WaitForRequest(requestNotify);
  1519 	User::WaitForRequest(requestNotify);
  1520 	AssertMockLtsyStatusL();
  1520 	AssertMockLtsyStatusL();
  1521 	ASSERT_EQUALS(KErrCancel, requestNotify.Int());
  1521 	ASSERT_EQUALS(KErrCancel, requestNotify.Int());
       
  1522 
       
  1523     //-------------------------------------------------------------------------
       
  1524     // Test change of profile in the LTSY when the Notification request has
       
  1525 	// been cancelled by the client
       
  1526     //-------------------------------------------------------------------------
       
  1527 	RPacketQoS::TQoSR5Negotiated qosR5Negotiated;
       
  1528 	TPckg< RPacketQoS::TQoSR5Negotiated > pckgQoSR5Negotiated(qosR5Negotiated);
       
  1529 
       
  1530 	ChangeProfileDataL<RPacketQoS::TQoSR5Requested>(packetContext, packetQoS, contextName, data);
       
  1531 
       
  1532     TRequestStatus requestGet;
       
  1533 	packetQoS.GetProfileParameters(requestGet, pckgQoSR5Negotiated);
       
  1534 	
       
  1535 	User::WaitForRequest(requestGet);
       
  1536 	AssertMockLtsyStatusL();
       
  1537 	ASSERT_EQUALS(KErrNone, requestGet.Int());
       
  1538 	    
       
  1539 	ASSERT_EQUALS(qosR5Negotiated.iSignallingIndication        , 1                                            );
       
  1540 	ASSERT_EQUALS(qosR5Negotiated.iSourceStatisticsDescriptor  , RPacketQoS::ESourceStatisticsDescriptorSpeech);
       
  1541 	ASSERT_EQUALS(qosR5Negotiated.iTrafficClass                , RPacketQoS::ETrafficClassStreaming           );
       
  1542 	ASSERT_EQUALS(qosR5Negotiated.iDeliveryOrderReqd           , RPacketQoS::EDeliveryOrderRequired           );
       
  1543 	ASSERT_EQUALS(qosR5Negotiated.iDeliverErroneousSDU         , RPacketQoS::EErroneousSDUDeliveryRequired    );
       
  1544 	ASSERT_EQUALS(qosR5Negotiated.iMaxSDUSize                  , 0x100                                        );
       
  1545 	ASSERT_EQUALS(qosR5Negotiated.iMaxRate.iUplinkRate         , 10000                                        );
       
  1546 	ASSERT_EQUALS(qosR5Negotiated.iMaxRate.iDownlinkRate       , 10000                                        );
       
  1547 	ASSERT_EQUALS(qosR5Negotiated.iBER                         , RPacketQoS::EBEROnePerHundredThousand        );
       
  1548 	ASSERT_EQUALS(qosR5Negotiated.iSDUErrorRatio               , RPacketQoS::ESDUErrorRatioOnePerTenThousand  );
       
  1549 	ASSERT_EQUALS(qosR5Negotiated.iTrafficHandlingPriority     , RPacketQoS::ETrafficPriority2                );
       
  1550 	ASSERT_EQUALS(qosR5Negotiated.iTransferDelay               , 1000                                         );
       
  1551 	ASSERT_EQUALS(qosR5Negotiated.iGuaranteedRate.iDownlinkRate, 1000                                         );
       
  1552 	ASSERT_EQUALS(qosR5Negotiated.iGuaranteedRate.iUplinkRate  , 1000                                         );
       
  1553 
       
  1554 	TRequestStatus requestNotify1;
       
  1555 	packetQoS.NotifyProfileChanged(requestNotify1, pckgQoSGPRSNegotiated);   
       
  1556 
       
  1557     ChangeProfileDataL<RPacketQoS::TQoSGPRSRequested>(packetContext, packetQoS, contextName, data);
       
  1558 
       
  1559 	User::WaitForRequest(requestNotify1);
       
  1560 	AssertMockLtsyStatusL();
       
  1561     ASSERT_EQUALS(KErrNone, requestNotify1.Int());
  1522 
  1562 
  1523 	CleanupStack::PopAndDestroy(3); // packetService, packetContext, packetQoS
  1563 	CleanupStack::PopAndDestroy(3); // packetService, packetContext, packetQoS
  1524 	CleanupStack::PopAndDestroy(2); // data, this
  1564 	CleanupStack::PopAndDestroy(2); // data, this
  1525 	
  1565 	
  1526 	}
  1566 	}