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

Unified Diff: util/test/mac/mach_multiprocess.cc

Issue 649713002: Use the correct null constants for Mach threads, tasks, and hosts (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « util/mach/exception_ports_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/test/mac/mach_multiprocess.cc
diff --git a/util/test/mac/mach_multiprocess.cc b/util/test/mac/mach_multiprocess.cc
index a8503fa3b08c40f9fbcef04e7f1c02c10dedcb69..8bb50c6aca13054c3cf7211a70feda80c99f3fef 100644
--- a/util/test/mac/mach_multiprocess.cc
+++ b/util/test/mac/mach_multiprocess.cc
@@ -55,7 +55,8 @@ struct MachMultiprocessInfo {
: service_name(),
local_port(MACH_PORT_NULL),
remote_port(MACH_PORT_NULL),
- child_task(MACH_PORT_NULL) {}
+ child_task(TASK_NULL) {
+ }
std::string service_name;
base::mac::ScopedMachReceiveRight local_port;
@@ -112,7 +113,7 @@ mach_port_t MachMultiprocess::RemotePort() const {
}
task_t MachMultiprocess::ChildTask() const {
- EXPECT_NE(kMachPortNull, info_->child_task);
+ EXPECT_NE(TASK_NULL, info_->child_task);
return info_->child_task;
}
« no previous file with comments | « util/mach/exception_ports_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698