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

Unified Diff: content/test/mock_render_thread.cc

Issue 8801001: Get rid of view_messages.h dependency in extension_messages_browsertest.cc by adding a method to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « content/test/mock_render_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_render_thread.cc
===================================================================
--- content/test/mock_render_thread.cc (revision 112878)
+++ content/test/mock_render_thread.cc (working copy)
@@ -19,6 +19,17 @@
MockRenderThread::~MockRenderThread() {
}
+void MockRenderThread::VerifyRunJavaScriptMessageSend(
+ const string16& expected_alert_message) {
+ const IPC::Message* alert_msg =
+ sink_.GetUniqueMessageMatching(ViewHostMsg_RunJavaScriptMessage::ID);
+ ASSERT_TRUE(alert_msg);
+ void* iter = IPC::SyncMessage::GetDataIterator(alert_msg);
+ ViewHostMsg_RunJavaScriptMessage::SendParam alert_param;
+ ASSERT_TRUE(IPC::ReadParam(alert_msg, &iter, &alert_param));
+ EXPECT_EQ(expected_alert_message, alert_param.a);
+}
+
// Called by the Widget. Used to send messages to the browser.
// We short-circuit the mechanism and handle the messages right here on this
// class.
« no previous file with comments | « content/test/mock_render_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698