Index: util/test/mac/mach_multiprocess.cc |
diff --git a/util/test/mac/mach_multiprocess.cc b/util/test/mac/mach_multiprocess.cc |
index d78b86008559e05789c21b7456975723da31954f..569f2c278ec2bae77eeca66a2e8e001614414887 100644 |
--- a/util/test/mac/mach_multiprocess.cc |
+++ b/util/test/mac/mach_multiprocess.cc |
@@ -27,6 +27,7 @@ |
#include "base/rand_util.h" |
#include "gtest/gtest.h" |
#include "util/mach/bootstrap.h" |
+#include "util/mach/mach_extensions.h" |
#include "util/misc/scoped_forbid_return.h" |
#include "util/test/errors.h" |
#include "util/test/mac/mach_errors.h" |
@@ -105,17 +106,17 @@ void MachMultiprocess::PreFork() { |
} |
mach_port_t MachMultiprocess::LocalPort() const { |
- EXPECT_NE(static_cast<mach_port_t>(MACH_PORT_NULL), info_->local_port); |
+ EXPECT_NE(kMachPortNull, info_->local_port); |
return info_->local_port; |
} |
mach_port_t MachMultiprocess::RemotePort() const { |
- EXPECT_NE(static_cast<mach_port_t>(MACH_PORT_NULL), info_->remote_port); |
+ EXPECT_NE(kMachPortNull, info_->remote_port); |
return info_->remote_port; |
} |
mach_port_t MachMultiprocess::ChildTask() const { |
- EXPECT_NE(static_cast<mach_port_t>(MACH_PORT_NULL), info_->child_task); |
+ EXPECT_NE(kMachPortNull, info_->child_task); |
return info_->child_task; |
} |