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

Unified Diff: util/mach/exception_ports_test.cc

Issue 1001943002: handler/mac: Log a warning when an exception message has a suspicious (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: MACH_MSG_TYPE_MAKE_SEND_ONCE Created 5 years, 9 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 | « handler/mac/exception_handler_server.cc ('k') | util/mach/mach_message.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/exception_ports_test.cc
diff --git a/util/mach/exception_ports_test.cc b/util/mach/exception_ports_test.cc
index 8948eae791668123ced9510c5a824d1f09d91a26..155e9187fa22cda9090ca98cdf70c013febef857 100644
--- a/util/mach/exception_ports_test.cc
+++ b/util/mach/exception_ports_test.cc
@@ -197,6 +197,8 @@ class TestExceptionPorts : public MachMultiprocess,
SetExpectedChildTermination(kTerminationSignal, signal);
}
+ EXPECT_EQ(0, AuditPIDFromMachMessageTrailer(trailer));
+
return ExcServerSuccessfulReturnValue(behavior, false);
}
@@ -443,7 +445,7 @@ class TestExceptionPorts : public MachMultiprocess,
kern_return_t kr =
MachMessageServer::Run(&universal_mach_exc_server,
local_port,
- MACH_MSG_OPTION_NONE,
+ kMachMessageReceiveAuditTrailer,
MachMessageServer::kOneShot,
MachMessageServer::kReceiveLargeError,
kTimeoutMs);
« no previous file with comments | « handler/mac/exception_handler_server.cc ('k') | util/mach/mach_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698