summaryrefslogtreecommitdiffstats
path: root/content/test/mock_render_thread.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-05 16:43:55 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-05 16:43:55 +0000
commit6f8f8b63fcea1e73107d9cb10122c806c454aca4 (patch)
treeddf1cfbdb90fd9f02a0b233747b248d061c60c1b /content/test/mock_render_thread.h
parented81b38b14cd63d20e23fcb126befd0527b4fb36 (diff)
downloadchromium_src-6f8f8b63fcea1e73107d9cb10122c806c454aca4.zip
chromium_src-6f8f8b63fcea1e73107d9cb10122c806c454aca4.tar.gz
chromium_src-6f8f8b63fcea1e73107d9cb10122c806c454aca4.tar.bz2
Get rid of view_messages.h dependency in extension_messages_browsertest.cc by adding a method to MockRenderThread instead.
BUG=98716 Review URL: http://codereview.chromium.org/8801001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/mock_render_thread.h')
-rw-r--r--content/test/mock_render_thread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/test/mock_render_thread.h b/content/test/mock_render_thread.h
index 4223ab2..3d87ed0 100644
--- a/content/test/mock_render_thread.h
+++ b/content/test/mock_render_thread.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/shared_memory.h"
+#include "base/string16.h"
#include "content/public/renderer/render_thread.h"
#include "ipc/ipc_test_sink.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
@@ -29,6 +30,10 @@ class MockRenderThread : public content::RenderThread {
// Provides access to the messages that have been received by this thread.
IPC::TestSink& sink() { return sink_; }
+ // Helpers for embedders to know when content IPC messages are received, since
+ // they don't have access to content IPC files.
+ void VerifyRunJavaScriptMessageSend(const string16& expected_alert_message);
+
// content::RenderThread implementation:
virtual bool Send(IPC::Message* msg) OVERRIDE;
virtual MessageLoop* GetMessageLoop() OVERRIDE;