Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(821)

Unified Diff: net/disk_cache/disk_cache_perftest.cc

Issue 2869005: Disk Cache: Remove deprecated methods from the disk cache interface.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/disk_cache.h ('k') | net/disk_cache/entry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache_perftest.cc
===================================================================
--- net/disk_cache/disk_cache_perftest.cc (revision 49819)
+++ net/disk_cache/disk_cache_perftest.cc (working copy)
@@ -66,7 +66,9 @@
entries->push_back(entry);
disk_cache::Entry* cache_entry;
- if (!cache->CreateEntry(entry.key, &cache_entry))
+ TestCompletionCallback cb;
+ int rv = cache->CreateEntry(entry.key, &cache_entry, &cb);
+ if (net::OK != cb.GetResult(rv))
break;
int ret = cache_entry->WriteData(0, 0, buffer1, kSize1, &callback, false);
if (net::ERR_IO_PENDING == ret)
@@ -112,7 +114,9 @@
for (int i = 0; i < num_entries; i++) {
disk_cache::Entry* cache_entry;
- if (!cache->OpenEntry(entries[i].key, &cache_entry))
+ TestCompletionCallback cb;
+ int rv = cache->OpenEntry(entries[i].key, &cache_entry, &cb);
+ if (net::OK != cb.GetResult(rv))
break;
int ret = cache_entry->ReadData(0, 0, buffer1, kSize1, &callback);
if (net::ERR_IO_PENDING == ret)
« no previous file with comments | « net/disk_cache/disk_cache.h ('k') | net/disk_cache/entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698