summaryrefslogtreecommitdiffstats
path: root/base/mac/scoped_mach_vm.h
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2015-03-09 15:27:25 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-09 22:28:34 +0000
commit94219a212c616eac1914ca851c55256c4bbd9e36 (patch)
treeb9721bd6f2d10f117355fdfa1a0391262b745628 /base/mac/scoped_mach_vm.h
parent6be122fb693fe8f2a5b150a12bddd5c85160b7a6 (diff)
downloadchromium_src-94219a212c616eac1914ca851c55256c4bbd9e36.zip
chromium_src-94219a212c616eac1914ca851c55256c4bbd9e36.tar.gz
chromium_src-94219a212c616eac1914ca851c55256c4bbd9e36.tar.bz2
base: Use more specific CHECK macros for comparisons.
Prefer DCHECK_EQ(a, b) over DCHECK(a == b) when possible as this provides more data on a failure. Similar for other operators such as >=, <, !=, etc. This also applies to CHECK, EXPECT, and ASSERT macros. R=Nico BUG=464816 Review URL: https://codereview.chromium.org/985723003 Cr-Commit-Position: refs/heads/master@{#319751}
Diffstat (limited to 'base/mac/scoped_mach_vm.h')
-rw-r--r--base/mac/scoped_mach_vm.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/base/mac/scoped_mach_vm.h b/base/mac/scoped_mach_vm.h
index b130a79..ffc00d5 100644
--- a/base/mac/scoped_mach_vm.h
+++ b/base/mac/scoped_mach_vm.h
@@ -48,10 +48,9 @@ namespace mac {
class BASE_EXPORT ScopedMachVM {
public:
explicit ScopedMachVM(vm_address_t address = 0, vm_size_t size = 0)
- : address_(address),
- size_(size) {
- DCHECK(address % PAGE_SIZE == 0);
- DCHECK(size % PAGE_SIZE == 0);
+ : address_(address), size_(size) {
+ DCHECK_EQ(address % PAGE_SIZE, 0u);
+ DCHECK_EQ(size % PAGE_SIZE, 0u);
}
~ScopedMachVM() {