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

Unified Diff: content/browser/frame_host/navigator_impl_unittest.cc

Issue 2079623002: Create only one ContextFactory in content unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add dcheck Created 4 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: content/browser/frame_host/navigator_impl_unittest.cc
diff --git a/content/browser/frame_host/navigator_impl_unittest.cc b/content/browser/frame_host/navigator_impl_unittest.cc
index e8a544209244019af771a68916bcc817dcfca16f..d869f06a0d13c5d27c397fcbd5c5a5f55356297f 100644
--- a/content/browser/frame_host/navigator_impl_unittest.cc
+++ b/content/browser/frame_host/navigator_impl_unittest.cc
@@ -48,20 +48,12 @@ class NavigatorTestWithBrowserSideNavigation
using SiteInstanceRelation = RenderFrameHostManager::SiteInstanceRelation;
void SetUp() override {
-#if !defined(OS_ANDROID)
- ImageTransportFactory::InitializeForUnitTests(
- std::unique_ptr<ImageTransportFactory>(
- new NoTransportImageTransportFactory));
-#endif
EnableBrowserSideNavigation();
RenderViewHostImplTestHarness::SetUp();
}
void TearDown() override {
RenderViewHostImplTestHarness::TearDown();
-#if !defined(OS_ANDROID)
- ImageTransportFactory::Terminate();
-#endif
}
TestNavigationURLLoader* GetLoaderForNavigationRequest(
« no previous file with comments | « content/browser/compositor/surface_utils.h ('k') | content/browser/frame_host/render_frame_host_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698