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

Unified Diff: util/mach/child_port_server_test.cc

Issue 781823002: Add CompositeMachMessageServer and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years 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/child_port_server.cc ('k') | util/mach/composite_mach_message_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/child_port_server_test.cc
diff --git a/util/mach/child_port_server_test.cc b/util/mach/child_port_server_test.cc
index ddc525bad9fd8929246996dca3c11b5d994e2450..b9ade37745e99e0fda489bf945f9348c90f5ab74 100644
--- a/util/mach/child_port_server_test.cc
+++ b/util/mach/child_port_server_test.cc
@@ -101,6 +101,10 @@ TEST(ChildPortServer, MockChildPortCheckIn) {
MockChildPortServerInterface server_interface;
ChildPortServer server(&server_interface);
+ std::set<mach_msg_id_t> expect_request_ids;
+ expect_request_ids.insert(10011); // There is no constant for this.
+ EXPECT_EQ(expect_request_ids, server.MachMessageServerRequestIDs());
+
ChildPortCheckInRequest request;
EXPECT_LE(request.Head.msgh_size, server.MachMessageServerRequestSize());
« no previous file with comments | « util/mach/child_port_server.cc ('k') | util/mach/composite_mach_message_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698