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

Unified Diff: ipc/ipc_test_sink.h

Issue 6286070: Remove all uses of the global Dispatcher Get function. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « chrome/ppapi_plugin/ppapi_thread.cc ('k') | ppapi/c/dev/ppb_opengles_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_sink.h
===================================================================
--- ipc/ipc_test_sink.h (revision 74021)
+++ ipc/ipc_test_sink.h (working copy)
@@ -42,6 +42,13 @@
// // Go on to the next phase of the test.
// test_sink.ClearMessages();
//
+// To read a sync reply, do this:
+//
+// IPC::Message* msg = test_sink.GetUniqueMessageMatching(IPC_REPLY_ID);
+// ASSERT_TRUE(msg);
+// TupleTypes<ViewHostMsg_Foo::ReplyParam>::ValueType reply_data;
+// EXPECT_TRUE(ViewHostMsg_Foo::ReadReplyParam(msg, &reply_data));
+//
// You can also register to be notified when messages are posted to the sink.
// This can be useful if you need to wait for a particular message that will
// be posted asynchronously. Example usage:
« no previous file with comments | « chrome/ppapi_plugin/ppapi_thread.cc ('k') | ppapi/c/dev/ppb_opengles_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698