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_BLOCKFILE_STRESS_SUPPORT_H_ | 5 #ifndef NET_DISK_CACHE_BLOCKFILE_STRESS_SUPPORT_H_ |
6 #define NET_DISK_CACHE_BLOCKFILE_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 { |
(...skipping 12 matching lines...) Expand all Loading... |
23 // down. | 23 // down. |
24 // #define STRESS_CACHE_EXTENDED_VALIDATION 1 | 24 // #define STRESS_CACHE_EXTENDED_VALIDATION 1 |
25 | 25 |
26 #if defined(NET_BUILD_STRESS_CACHE) | 26 #if defined(NET_BUILD_STRESS_CACHE) |
27 #define STRESS_NOTREACHED() NOTREACHED() | 27 #define STRESS_NOTREACHED() NOTREACHED() |
28 #define STRESS_DCHECK(a) DCHECK(a) | 28 #define STRESS_DCHECK(a) DCHECK(a) |
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 {} |
| 35 #define STRESS_DCHECK(a) \ |
| 36 {} |
35 #endif | 37 #endif |
36 | 38 |
37 } // namespace disk_cache | 39 } // namespace disk_cache |
38 | 40 |
39 #endif // NET_DISK_CACHE_BLOCKFILE_STRESS_SUPPORT_H_ | 41 #endif // NET_DISK_CACHE_BLOCKFILE_STRESS_SUPPORT_H_ |
OLD | NEW |