summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 17:45:19 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 17:45:19 +0000
commit99796bd00ef99bb38f651e62e640989b17ab0bf6 (patch)
treeb8e6182770e99dff83adc095281e41111887c4b9 /chrome/common
parentb026f4aeb159244e47d3b55c5faad7bb3247fd55 (diff)
downloadchromium_src-99796bd00ef99bb38f651e62e640989b17ab0bf6.zip
chromium_src-99796bd00ef99bb38f651e62e640989b17ab0bf6.tar.gz
chromium_src-99796bd00ef99bb38f651e62e640989b17ab0bf6.tar.bz2
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
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/ipc_test_sink.h8
1 files changed, 8 insertions, 0 deletions
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();
//