| Index: net/disk_cache/disk_cache_test_util.h
|
| diff --git a/net/disk_cache/disk_cache_test_util.h b/net/disk_cache/disk_cache_test_util.h
|
| index ad6b6ac94145cf3875525ee432fd4ff457dcc796..1209174513857927d4881c4fd4b994cbac227ca8 100644
|
| --- a/net/disk_cache/disk_cache_test_util.h
|
| +++ b/net/disk_cache/disk_cache_test_util.h
|
| @@ -13,6 +13,15 @@
|
| #include "base/tuple.h"
|
| #include "build/build_config.h"
|
|
|
| +// Disables a parameterized test if a quirk condition is met.
|
| +#define TEST_DISABLED_IF(cond) \
|
| + do { \
|
| + if (cond) { \
|
| + LOG(INFO) << "Test is disabled."; \
|
| + return; \
|
| + } \
|
| + } while (false)
|
| +
|
| // Re-creates a given test file inside the cache test folder.
|
| bool CreateCacheTestFile(const base::FilePath& name);
|
|
|
| @@ -25,10 +34,6 @@ void CacheTestFillBuffer(char* buffer, size_t len, bool no_nulls);
|
| // Generates a random key of up to 200 bytes.
|
| std::string GenerateKey(bool same_length);
|
|
|
| -// Returns true if the cache is not corrupt.
|
| -bool CheckCacheIntegrity(const base::FilePath& path, bool new_eviction,
|
| - uint32 mask);
|
| -
|
| // -----------------------------------------------------------------------
|
|
|
| // Simple helper to deal with the message loop on a test.
|
|
|