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

Unified Diff: content/public/test/test_renderer_host.cc

Issue 803873004: ContentBrowserSanityChecker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jiggle the comments. Created 6 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
Index: content/public/test/test_renderer_host.cc
diff --git a/content/public/test/test_renderer_host.cc b/content/public/test/test_renderer_host.cc
index d8faf26f5a352b0db421e07f853891b7b82cbcb0..f1d08f4147871a186ddcc3c95eba418de91c5e56 100644
--- a/content/public/test/test_renderer_host.cc
+++ b/content/public/test/test_renderer_host.cc
@@ -13,6 +13,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_switches.h"
+#include "content/public/test/content_browser_sanity_checker.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_context.h"
#include "content/test/browser_side_navigation_test_utils.h"
@@ -192,6 +193,8 @@ void RenderViewHostTestHarness::SetUp() {
new wm::DefaultActivationClient(aura_test_helper_->root_window());
#endif
+ sanity_checker_.reset(new ContentBrowserSanityChecker());
+
DCHECK(!browser_context_);
browser_context_.reset(CreateBrowserContext());
@@ -242,7 +245,7 @@ BrowserContext* RenderViewHostTestHarness::CreateBrowserContext() {
void RenderViewHostTestHarness::SetRenderProcessHostFactory(
RenderProcessHostFactory* factory) {
- rvh_test_enabler_.rvh_factory_->set_render_process_host_factory(factory);
+ rvh_test_enabler_.rvh_factory_->set_render_process_host_factory(factory);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698