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

Unified Diff: chrome/test/base/in_process_browser_test.cc

Issue 10479023: Simplify how Content*Client interfaces are created. Instead of depending on the embedder to know wh… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove unused function declaration Created 8 years, 6 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
Index: chrome/test/base/in_process_browser_test.cc
===================================================================
--- chrome/test/base/in_process_browser_test.cc (revision 140381)
+++ chrome/test/base/in_process_browser_test.cc (working copy)
@@ -28,6 +28,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/url_constants.h"
+#include "chrome/renderer/chrome_content_renderer_client.h"
#include "chrome/test/base/chrome_test_suite.h"
#include "chrome/test/base/test_launcher_utils.h"
#include "chrome/test/base/testing_browser_process.h"
@@ -37,7 +38,6 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/test/test_browser_thread.h"
#include "content/public/test/test_launcher.h"
-#include "content/renderer/mock_content_renderer_client.h"
#include "net/base/mock_host_resolver.h"
#include "net/test/test_server.h"
#include "ui/compositor/compositor_switches.h"
@@ -114,8 +114,8 @@
if (command_line->HasSwitch(switches::kSingleProcess)) {
content::RenderProcessHost::set_run_renderer_in_process(true);
single_process_renderer_client_.reset(
- new content::MockContentRendererClient);
- content::GetContentClient()->set_renderer(
+ new chrome::ChromeContentRendererClient);
+ content::GetContentClient()->set_renderer_for_testing(
single_process_renderer_client_.get());
}

Powered by Google App Engine
This is Rietveld 408576698