487 // TEST START |
487 // TEST START |
488 // |
488 // |
489 |
489 |
490 |
490 |
491 // Start downloading a file via HTTP. |
491 // Start downloading a file via HTTP. |
492 TBuf<140> host(_L("developer.symbian.com")); |
492 TBuf<140> host(_L("developer.symbian.org")); |
493 TBuf<140> page(_L("/main/downloads/papers/IMS_Introduction_Part_1.pdf")); |
493 TBuf<140> page(_L("/wiki/images/1/12/Common_Design_Patterns_for_Symbian_OS_Sample_Chapter.pdf")); |
494 CHTTPDownload* download = new (ELeave) CHTTPDownload(this); |
494 CHTTPDownload* download = new (ELeave) CHTTPDownload(this); |
495 CleanupStack::PushL(download); |
495 CleanupStack::PushL(download); |
496 ASSERT_TRUE(download->StartDownloadL(host,page), _L("Download Failed")); |
496 ASSERT_TRUE(download->StartDownloadL(host,page), _L("Download Failed - perhaps page has moved!")); |
497 |
497 |
498 // Get context info |
498 // Get context info |
499 TExtEtelRequestStatus getContextInfo(packetService, EPacketGetContextInfo); |
499 TExtEtelRequestStatus getContextInfo(packetService, EPacketGetContextInfo); |
500 CleanupStack::PushL(getContextInfo); |
500 CleanupStack::PushL(getContextInfo); |
501 RPacketService::TContextInfo contextInfo; |
501 RPacketService::TContextInfo contextInfo; |
798 dataCall1.Dial(dialStatus, dataparamsPckg, dataNumber); |
798 dataCall1.Dial(dialStatus, dataparamsPckg, dataNumber); |
799 ASSERT_EQUALS(WaitForRequestWithTimeOut(dialStatus, ETimeMedium), KErrNone, _L("RCall::Dial timed-out")); |
799 ASSERT_EQUALS(WaitForRequestWithTimeOut(dialStatus, ETimeMedium), KErrNone, _L("RCall::Dial timed-out")); |
800 ASSERT_EQUALS(dialStatus.Int(), KErrNone, _L("RCall::Dial returned with an error")); |
800 ASSERT_EQUALS(dialStatus.Int(), KErrNone, _L("RCall::Dial returned with an error")); |
801 |
801 |
802 // Start downloading a file e.g. via HTTP. |
802 // Start downloading a file e.g. via HTTP. |
803 TBuf<140> host(_L("developer.symbian.com")); |
803 TBuf<140> host(_L("developer.symbian.org")); |
804 TBuf<140> page(_L("/main/downloads/papers/IMS_Introduction_Part_1.pdf")); |
804 TBuf<140> page(_L("/wiki/images/1/12/Common_Design_Patterns_for_Symbian_OS_Sample_Chapter.pdf")); |
805 CHTTPDownload *download = new (ELeave) CHTTPDownload(this); |
805 CHTTPDownload* download = new (ELeave) CHTTPDownload(this); |
806 CleanupStack::PushL(download); |
806 CleanupStack::PushL(download); |
807 ASSERT_TRUE(download->StartDownloadL(host,page),_L("CHTTPDownload::StartDownloadL failed")); |
807 ASSERT_TRUE(download->StartDownloadL(host,page), _L("Download Failed - perhaps page has moved!")); |
808 |
808 |
809 // Verify file is downloading. |
809 // Verify file is downloading. |
810 ASSERT_TRUE(download->VerifyDownloading(), _L("CHTTPDownload::VerifyDownloading did not return ETrue as expected. File is not downloaded.")); |
810 ASSERT_TRUE(download->VerifyDownloading(), _L("CHTTPDownload::VerifyDownloading did not return ETrue as expected. File is not downloaded.")); |
811 |
811 |
812 // Hang up call 1. |
812 // Hang up call 1. |