From 99796bd00ef99bb38f651e62e640989b17ab0bf6 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Wed, 28 Jan 2009 17:45:19 +0000 Subject: Write some basic RenderWidgetHost unittests for the more tricky behavior. Review URL: http://codereview.chromium.org/19419 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8806 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/ipc_test_sink.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome/common/ipc_test_sink.h') diff --git a/chrome/common/ipc_test_sink.h b/chrome/common/ipc_test_sink.h index db4096d..9403deb 100644 --- a/chrome/common/ipc_test_sink.h +++ b/chrome/common/ipc_test_sink.h @@ -27,6 +27,14 @@ namespace IPC { // // ...and no start load messages. // EXPECT_FALSE(test_sink.GetFirstMessageMatching(ViewHostMsg_Start::ID)); // +// // Now inspect a message. This assumes a message that was declared like +// // this: IPC_MESSAGE_ROUTED2(ViewMsg_Foo, bool, int) +// IPC::Message* msg = test_sink.GetFirstMessageMatching(ViewMsg_Foo::ID)); +// ASSERT_TRUE(msg); +// bool first_param; +// int second_param; +// ViewMsg_Foo::Read(msg, &first_param, &second_param); +// // // Go on to the next phase of the test. // test_sink.ClearMessages(); // -- cgit v1.1