Bug 966438 - Use nsICacheStorageService.clear() instead of nsICacheStorage.asyncEvictStorage() to clear the cache, r=honzab
authorMichal Novotny <michal.novotny@gmail.com>
Tue, 11 Mar 2014 13:50:04 +0100
changeset 191173 7311786f84770dcf234984e7c152f31adec0e6e4
parent 191172 3c126eebea641af5c89fedfb0947fb5b44b8a71a
child 191174 07f6777305580cb65a8dba954dfd907fb4ed2c80
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershonzab
bugs966438
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 966438 - Use nsICacheStorageService.clear() instead of nsICacheStorage.asyncEvictStorage() to clear the cache, r=honzab
netwerk/test/unit/test_bug650995.js
--- a/netwerk/test/unit/test_bug650995.js
+++ b/netwerk/test/unit/test_bug650995.js
@@ -54,17 +54,17 @@ var tests = [
                  function() { prefService.setIntPref("browser.cache.disk.max_entry_size", -1); },
                               "0123456789a", "9876543210", "0123456789a"), // expect cached value
             ];
 
 function nextTest() {
     // We really want each test to be self-contained. Make sure cache is
     // cleared and also let all operations finish before starting a new test
     syncWithCacheIOThread(function() {
-        evict_cache_entries();
+        get_cache_service().clear();
         syncWithCacheIOThread(runNextTest);
     });
 }
 
 function runNextTest() {
     var aTest = tests.shift();
     if (!aTest) {
         httpserver.stop(do_test_finished);