tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
   553       QVERIFY(!QTestEventLoop::instance().timeout());
   553       QVERIFY(!QTestEventLoop::instance().timeout());
   554 }
   554 }
   555 
   555 
   556 void tst_qnetworkreply::httpUploadPerformance()
   556 void tst_qnetworkreply::httpUploadPerformance()
   557 {
   557 {
   558 #ifdef Q_OS_SYMBIAN
   558 #if defined(Q_OS_SYMBIAN) || defined(Q_WS_WINCE_WM)
   559       // SHow some mercy for non-desktop platform/s
   559       // SHow some mercy for non-desktop platform/s
   560       enum {UploadSize = 4*1024*1024}; // 4 MB
   560       enum {UploadSize = 4*1024*1024}; // 4 MB
   561 #else
   561 #else
   562       enum {UploadSize = 128*1024*1024}; // 128 MB
   562       enum {UploadSize = 128*1024*1024}; // 128 MB
   563 #endif
   563 #endif
   624 
   624 
   625 void tst_qnetworkreply::httpDownloadPerformance()
   625 void tst_qnetworkreply::httpDownloadPerformance()
   626 {
   626 {
   627     QFETCH(bool, serverSendsContentLength);
   627     QFETCH(bool, serverSendsContentLength);
   628     QFETCH(bool, chunkedEncoding);
   628     QFETCH(bool, chunkedEncoding);
   629 #ifdef Q_OS_SYMBIAN
   629 #if defined(Q_OS_SYMBIAN) || defined(Q_WS_WINCE_WM)
   630     // Show some mercy to non-desktop platform/s
   630     // Show some mercy to non-desktop platform/s
   631     enum {UploadSize = 4*1024*1024}; // 4 MB
   631     enum {UploadSize = 4*1024*1024}; // 4 MB
   632 #else
   632 #else
   633     enum {UploadSize = 128*1024*1024}; // 128 MB
   633     enum {UploadSize = 128*1024*1024}; // 128 MB
   634 #endif
   634 #endif