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

Unified Diff: net/http/http_cache_unittest.cc

Issue 355028: Disk Cache: New interface that enables asynchronous completion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/mem_entry_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_unittest.cc
===================================================================
--- net/http/http_cache_unittest.cc (revision 30986)
+++ net/http/http_cache_unittest.cc (working copy)
@@ -228,6 +228,11 @@
return count;
}
+ virtual int GetAvailableRange(int64 offset, int len, int64* start,
+ net::CompletionCallback* callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+ }
+
virtual void CancelSparseIO() { cancel_ = true; }
virtual int ReadyForSparseIO(net::CompletionCallback* completion_callback) {
@@ -331,6 +336,11 @@
return true;
}
+ virtual int OpenEntry(const std::string& key, disk_cache::Entry** entry,
+ net::CompletionCallback* callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+ }
+
virtual bool CreateEntry(const std::string& key, disk_cache::Entry** entry) {
if (fail_requests_)
return false;
@@ -354,6 +364,11 @@
return true;
}
+ virtual int CreateEntry(const std::string& key, disk_cache::Entry** entry,
+ net::CompletionCallback* callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+ }
+
virtual bool DoomEntry(const std::string& key) {
EntryMap::iterator it = entries_.find(key);
if (it != entries_.end()) {
@@ -367,19 +382,39 @@
return false;
}
+ virtual int DoomAllEntries(net::CompletionCallback* callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+ }
+
virtual bool DoomEntriesBetween(const Time initial_time,
const Time end_time) {
return true;
}
+ virtual int DoomEntriesBetween(const base::Time initial_time,
+ const base::Time end_time,
+ net::CompletionCallback* callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+ }
+
virtual bool DoomEntriesSince(const Time initial_time) {
return true;
}
+ virtual int DoomEntriesSince(const base::Time initial_time,
+ net::CompletionCallback* callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+ }
+
virtual bool OpenNextEntry(void** iter, disk_cache::Entry** next_entry) {
return false;
}
+ virtual int OpenNextEntry(void** iter, disk_cache::Entry** next_entry,
+ net::CompletionCallback* callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+ }
+
virtual void EndEnumeration(void** iter) {}
virtual void GetStats(
« no previous file with comments | « net/disk_cache/mem_entry_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698