| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_DISK_CACHE_STRESS_SUPPORT_H_ | 5 #ifndef NET_DISK_CACHE_BLOCKFILE_STRESS_SUPPORT_H_ |
| 6 #define NET_DISK_CACHE_STRESS_SUPPORT_H_ | 6 #define NET_DISK_CACHE_BLOCKFILE_STRESS_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 | 9 |
| 10 namespace disk_cache { | 10 namespace disk_cache { |
| 11 | 11 |
| 12 // Uncomment this line to generate a debug build of stress_cache with checks | 12 // Uncomment this line to generate a debug build of stress_cache with checks |
| 13 // to ensure that we are not producing corrupt entries. | 13 // to ensure that we are not producing corrupt entries. |
| 14 // #define NET_BUILD_STRESS_CACHE 1 | 14 // #define NET_BUILD_STRESS_CACHE 1 |
| 15 | 15 |
| 16 // Uncomment this line to direct the in-memory disk cache tracing to the base | 16 // Uncomment this line to direct the in-memory disk cache tracing to the base |
| (...skipping 12 matching lines...) Expand all Loading... |
| 29 #else | 29 #else |
| 30 // We don't support streams with these macros, but that's a small price to pay | 30 // We don't support streams with these macros, but that's a small price to pay |
| 31 // to have a straightforward logic here. Please don't add something like | 31 // to have a straightforward logic here. Please don't add something like |
| 32 // LogMessageVoidify. | 32 // LogMessageVoidify. |
| 33 #define STRESS_NOTREACHED() {} | 33 #define STRESS_NOTREACHED() {} |
| 34 #define STRESS_DCHECK(a) {} | 34 #define STRESS_DCHECK(a) {} |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 } // namespace disk_cache | 37 } // namespace disk_cache |
| 38 | 38 |
| 39 #endif // NET_DISK_CACHE_STRESS_SUPPORT_H_ | 39 #endif // NET_DISK_CACHE_BLOCKFILE_STRESS_SUPPORT_H_ |
| OLD | NEW |