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

Unified Diff: net/disk_cache/disk_cache_test_base.cc

Issue 8956014: base::Bind: Cleanup almost-unused OldCompletionCallbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years 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/in_flight_backend_io.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache_test_base.cc
diff --git a/net/disk_cache/disk_cache_test_base.cc b/net/disk_cache/disk_cache_test_base.cc
index ec5f67cf789ec434db12deae7406eadc9756b049..fef178e3b17f1239b740c3c85b6fefbd9fb0668c 100644
--- a/net/disk_cache/disk_cache_test_base.cc
+++ b/net/disk_cache/disk_cache_test_base.cc
@@ -125,15 +125,15 @@ int DiskCacheTestWithCache::DoomEntry(const std::string& key) {
}
int DiskCacheTestWithCache::DoomAllEntries() {
- TestOldCompletionCallback cb;
- int rv = cache_->DoomAllEntries(&cb);
+ net::TestCompletionCallback cb;
+ int rv = cache_->DoomAllEntries(cb.callback());
return cb.GetResult(rv);
}
int DiskCacheTestWithCache::DoomEntriesBetween(const base::Time initial_time,
const base::Time end_time) {
- TestOldCompletionCallback cb;
- int rv = cache_->DoomEntriesBetween(initial_time, end_time, &cb);
+ net::TestCompletionCallback cb;
+ int rv = cache_->DoomEntriesBetween(initial_time, end_time, cb.callback());
return cb.GetResult(rv);
}
@@ -145,8 +145,8 @@ int DiskCacheTestWithCache::DoomEntriesSince(const base::Time initial_time) {
int DiskCacheTestWithCache::OpenNextEntry(void** iter,
disk_cache::Entry** next_entry) {
- TestOldCompletionCallback cb;
- int rv = cache_->OpenNextEntry(iter, next_entry, &cb);
+ net::TestCompletionCallback cb;
+ int rv = cache_->OpenNextEntry(iter, next_entry, cb.callback());
return cb.GetResult(rv);
}
@@ -178,7 +178,6 @@ int DiskCacheTestWithCache::ReadData(disk_cache::Entry* entry, int index,
return cb.GetResult(rv);
}
-
int DiskCacheTestWithCache::WriteData(disk_cache::Entry* entry, int index,
int offset, net::IOBuffer* buf, int len,
bool truncate) {
« no previous file with comments | « net/disk_cache/disk_cache.h ('k') | net/disk_cache/in_flight_backend_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698