Index: net/disk_cache/disk_cache_test_base.h |
diff --git a/net/disk_cache/disk_cache_test_base.h b/net/disk_cache/disk_cache_test_base.h |
index b724906289528dc425c41606cdabb71941602170..9a5c503b301f04aca76b746c585c08810a2146dc 100644 |
--- a/net/disk_cache/disk_cache_test_base.h |
+++ b/net/disk_cache/disk_cache_test_base.h |
@@ -66,48 +66,30 @@ class DiskCacheTestWithCache : public DiskCacheTest { |
void SimulateCrash(); |
void SetTestMode(); |
- void SetMemoryOnlyMode() { |
- memory_only_ = true; |
- } |
+ void SetMemoryOnlyMode() { memory_only_ = true; } |
- void SetSimpleCacheMode() { |
- simple_cache_mode_ = true; |
- } |
+ void SetSimpleCacheMode() { simple_cache_mode_ = true; } |
- void SetMask(uint32 mask) { |
- mask_ = mask; |
- } |
+ void SetMask(uint32 mask) { mask_ = mask; } |
void SetMaxSize(int size); |
// Deletes and re-creates the files on initialization errors. |
- void SetForceCreation() { |
- force_creation_ = true; |
- } |
+ void SetForceCreation() { force_creation_ = true; } |
- void SetNewEviction() { |
- new_eviction_ = true; |
- } |
+ void SetNewEviction() { new_eviction_ = true; } |
void DisableSimpleCacheWaitForIndex() { |
simple_cache_wait_for_index_ = false; |
} |
- void DisableFirstCleanup() { |
- first_cleanup_ = false; |
- } |
+ void DisableFirstCleanup() { first_cleanup_ = false; } |
- void DisableIntegrityCheck() { |
- integrity_ = false; |
- } |
+ void DisableIntegrityCheck() { integrity_ = false; } |
- void UseCurrentThread() { |
- use_current_thread_ = true; |
- } |
+ void UseCurrentThread() { use_current_thread_ = true; } |
- void SetCacheType(net::CacheType type) { |
- type_ = type; |
- } |
+ void SetCacheType(net::CacheType type) { type_ = type; } |
// Utility methods to access the cache and wait for each operation to finish. |
int OpenEntry(const std::string& key, disk_cache::Entry** entry); |
@@ -120,14 +102,25 @@ class DiskCacheTestWithCache : public DiskCacheTest { |
int OpenNextEntry(void** iter, disk_cache::Entry** next_entry); |
void FlushQueueForTest(); |
void RunTaskForTest(const base::Closure& closure); |
- int ReadData(disk_cache::Entry* entry, int index, int offset, |
- net::IOBuffer* buf, int len); |
- int WriteData(disk_cache::Entry* entry, int index, int offset, |
- net::IOBuffer* buf, int len, bool truncate); |
- int ReadSparseData(disk_cache::Entry* entry, int64 offset, net::IOBuffer* buf, |
+ int ReadData(disk_cache::Entry* entry, |
+ int index, |
+ int offset, |
+ net::IOBuffer* buf, |
+ int len); |
+ int WriteData(disk_cache::Entry* entry, |
+ int index, |
+ int offset, |
+ net::IOBuffer* buf, |
+ int len, |
+ bool truncate); |
+ int ReadSparseData(disk_cache::Entry* entry, |
+ int64 offset, |
+ net::IOBuffer* buf, |
int len); |
- int WriteSparseData(disk_cache::Entry* entry, int64 offset, |
- net::IOBuffer* buf, int len); |
+ int WriteSparseData(disk_cache::Entry* entry, |
+ int64 offset, |
+ net::IOBuffer* buf, |
+ int len); |
// Asks the cache to trim an entry. If |empty| is true, the whole cache is |
// deleted. |