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

Side by Side Diff: net/disk_cache/blockfile/stress_support.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698