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

Unified Diff: util/mach/mach_message_server_test.cc

Issue 564533002: MachMessageServer: Make request messages const (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 3 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
« util/mach/exc_server_variants.cc ('K') | « util/mach/mach_message_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/mach_message_server_test.cc
diff --git a/util/mach/mach_message_server_test.cc b/util/mach/mach_message_server_test.cc
index 311a546ac7feee3704d76eea4d2180472f65a712..5df0a20de2b420e93e0d797ab9aea63b3e251d4a 100644
--- a/util/mach/mach_message_server_test.cc
+++ b/util/mach/mach_message_server_test.cc
@@ -181,7 +181,7 @@ class TestMachMessageServer : public MachMessageServer::Interface,
// MachMessageServerInterface:
virtual bool MachMessageServerFunction(
- mach_msg_header_t* in,
+ const mach_msg_header_t* in,
mach_msg_header_t* out,
bool* destroy_complex_request) override {
*destroy_complex_request = options_.server_destroy_complex;
@@ -200,7 +200,7 @@ class TestMachMessageServer : public MachMessageServer::Interface,
};
const ReceiveRequestMessage* request =
- reinterpret_cast<ReceiveRequestMessage*>(in);
+ reinterpret_cast<const ReceiveRequestMessage*>(in);
const mach_msg_bits_t expect_msgh_bits =
MACH_MSGH_BITS(MACH_MSG_TYPE_MOVE_SEND, MACH_MSG_TYPE_MOVE_SEND) |
(options_.client_send_complex ? MACH_MSGH_BITS_COMPLEX : 0);
« util/mach/exc_server_variants.cc ('K') | « util/mach/mach_message_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698