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

Unified Diff: net/disk_cache/disk_cache_test_base.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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.

Powered by Google App Engine
This is Rietveld 408576698