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

Unified Diff: chrome/renderer/media/cast_session_browsertest.cc

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 years, 9 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/renderer/extensions/dispatcher.cc ('k') | chrome/renderer/translate/translate_script_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_session_browsertest.cc
===================================================================
--- chrome/renderer/media/cast_session_browsertest.cc (revision 257432)
+++ chrome/renderer/media/cast_session_browsertest.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/message_loop/message_loop_proxy.h"
#include "base/run_loop.h"
+#include "chrome/renderer/chrome_content_renderer_client.h"
#include "chrome/test/base/chrome_render_view_test.h"
namespace chrome {
@@ -17,7 +18,9 @@
TEST_F(CastSessionBrowserTest, CreateAndDestroy) {
chrome_render_thread_->set_io_message_loop_proxy(
base::MessageLoopProxy::current());
- chrome_content_renderer_client_.RenderThreadStarted();
+ ChromeContentRendererClient* client =
+ static_cast<ChromeContentRendererClient*>(content_renderer_client_.get());
+ client->RenderThreadStarted();
scoped_refptr<CastSession> session(new CastSession());
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | chrome/renderer/translate/translate_script_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698