1322 void CCustomResolverCacheTest::RunAllTestsL() |
1322 void CCustomResolverCacheTest::RunAllTestsL() |
1323 { |
1323 { |
1324 CopyPluginsL(); |
1324 CopyPluginsL(); |
1325 |
1325 |
1326 test.Next(_L("Basic TestCounterWrapAroundL")); |
1326 test.Next(_L("Basic TestCounterWrapAroundL")); |
1327 DoBasicTestL(TestCounterWrapAroundL); |
1327 DoBasicTestL(&CCustomResolverCacheTest::TestCounterWrapAroundL); |
1328 |
1328 |
1329 test.Next(_L("Basic TestUpgradingCachedResolverL")); |
1329 test.Next(_L("Basic TestUpgradingCachedResolverL")); |
1330 DoBasicTestL(TestUpgradingCachedResolverL); |
1330 DoBasicTestL(&CCustomResolverCacheTest::TestUpgradingCachedResolverL); |
1331 |
1331 |
1332 test.Next(_L("Basic TestCacheQueueFullPattern1L")); |
1332 test.Next(_L("Basic TestCacheQueueFullPattern1L")); |
1333 DoBasicTestL(TestCacheQueueFullPattern1L); |
1333 DoBasicTestL(&CCustomResolverCacheTest::TestCacheQueueFullPattern1L); |
1334 |
1334 |
1335 test.Next(_L("Basic TestCacheQueueFullPattern2L")); |
1335 test.Next(_L("Basic TestCacheQueueFullPattern2L")); |
1336 DoBasicTestL(TestCacheQueueFullPattern2L); |
1336 DoBasicTestL(&CCustomResolverCacheTest::TestCacheQueueFullPattern2L); |
1337 |
1337 |
1338 test.Next(_L("Basic TestCacheQueueFullPattern3L")); |
1338 test.Next(_L("Basic TestCacheQueueFullPattern3L")); |
1339 DoBasicTestL(TestCacheQueueFullPattern3L); |
1339 DoBasicTestL(&CCustomResolverCacheTest::TestCacheQueueFullPattern3L); |
1340 |
1340 |
1341 test.Next(_L("Basic TestCacheTimerAccuracyL")); |
1341 test.Next(_L("Basic TestCacheTimerAccuracyL")); |
1342 DoBasicTestL(TestCacheTimerAccuracyL); |
1342 DoBasicTestL(&CCustomResolverCacheTest::TestCacheTimerAccuracyL); |
1343 |
1343 |
1344 test.Next(_L("Basic TestTimestampUpdateOnCacheHitL")); |
1344 test.Next(_L("Basic TestTimestampUpdateOnCacheHitL")); |
1345 DoBasicTestL(TestTimestampUpdateOnCacheHitL); |
1345 DoBasicTestL(&CCustomResolverCacheTest::TestTimestampUpdateOnCacheHitL); |
1346 |
1346 |
1347 test.Next(_L("Basic TestSWIDisableRwResolverCachingL")); |
1347 test.Next(_L("Basic TestSWIDisableRwResolverCachingL")); |
1348 DoBasicTestL(TestSWIDisableRwResolverCachingL); |
1348 DoBasicTestL(&CCustomResolverCacheTest::TestSWIDisableRwResolverCachingL); |
1349 |
1349 |
1350 test.Next(_L("Basic TestBurDisableRwResolverCachingL")); |
1350 test.Next(_L("Basic TestBurDisableRwResolverCachingL")); |
1351 DoBasicTestL(TestBurDisableRwResolverCachingL); |
1351 DoBasicTestL(&CCustomResolverCacheTest::TestBurDisableRwResolverCachingL); |
1352 |
1352 |
1353 test.Next(_L("Basic TestClockChangeHasNoEffectOnCacheTimeoutL")); |
1353 test.Next(_L("Basic TestClockChangeHasNoEffectOnCacheTimeoutL")); |
1354 DoBasicTestL(TestClockChangeHasNoEffectOnCacheTimeoutL); |
1354 DoBasicTestL(&CCustomResolverCacheTest::TestClockChangeHasNoEffectOnCacheTimeoutL); |
1355 |
1355 |
1356 test.Next(_L("Basic TestCacheSizeZeroL")); |
1356 test.Next(_L("Basic TestCacheSizeZeroL")); |
1357 DoBasicTestL(TestCacheSizeZeroL); |
1357 DoBasicTestL(&CCustomResolverCacheTest::TestCacheSizeZeroL); |
1358 |
1358 |
1359 test.Next(_L("Basic TestCacheTimeoutZeroL")); |
1359 test.Next(_L("Basic TestCacheTimeoutZeroL")); |
1360 DoBasicTestL(TestCacheTimeoutZeroL); |
1360 DoBasicTestL(&CCustomResolverCacheTest::TestCacheTimeoutZeroL); |
1361 |
1361 |
1362 test.Next(_L("Basic TestResolverWithBadProxyTable")); |
1362 test.Next(_L("Basic TestResolverWithBadProxyTable")); |
1363 DoBasicTestL(TestResolverWithBadProxyTable); |
1363 DoBasicTestL(&CCustomResolverCacheTest::TestResolverWithBadProxyTable); |
1364 |
1364 |
1365 // Only run OOM on tests which do not involve rescan dir. |
1365 // Only run OOM on tests which do not involve rescan dir. |
1366 test.Next(_L("OOM TestCacheQueueFullPattern3L")); |
1366 test.Next(_L("OOM TestCacheQueueFullPattern3L")); |
1367 DoOOMTestL(TestCacheQueueFullPattern3L); |
1367 DoOOMTestL(&CCustomResolverCacheTest::TestCacheQueueFullPattern3L); |
1368 |
1368 |
1369 test.Next(_L("OOM TestCacheTimerAccuracyL")); |
1369 test.Next(_L("OOM TestCacheTimerAccuracyL")); |
1370 DoOOMTestL(TestCacheTimerAccuracyL); |
1370 DoOOMTestL(&CCustomResolverCacheTest::TestCacheTimerAccuracyL); |
1371 |
1371 |
1372 test.Next(_L("OOM TestTimestampUpdateOnCacheHitL")); |
1372 test.Next(_L("OOM TestTimestampUpdateOnCacheHitL")); |
1373 DoOOMTestL(TestTimestampUpdateOnCacheHitL); |
1373 DoOOMTestL(&CCustomResolverCacheTest::TestTimestampUpdateOnCacheHitL); |
1374 |
1374 |
1375 // Do all tests affected by Lazy DLL unload last. |
1375 // Do all tests affected by Lazy DLL unload last. |
1376 test.Next(_L("Basic TestDeletingCachedResolverL")); |
1376 test.Next(_L("Basic TestDeletingCachedResolverL")); |
1377 DoBasicTestL(TestDeletingCachedResolverL); |
1377 DoBasicTestL(&CCustomResolverCacheTest::TestDeletingCachedResolverL); |
1378 } |
1378 } |
1379 |
1379 |
1380 static TInt KillEComServer() |
1380 static TInt KillEComServer() |
1381 { |
1381 { |
1382 //Need to ensure that the EComServer process is killed before even starting this test by using |
1382 //Need to ensure that the EComServer process is killed before even starting this test by using |