Index: content/browser/frame_host/render_frame_host_manager_unittest.cc |
diff --git a/content/browser/frame_host/render_frame_host_manager_unittest.cc b/content/browser/frame_host/render_frame_host_manager_unittest.cc |
index cf1545a5a2d00cce455eb538d7369b02f3480e9a..a0f0eaa1f6f8bc4c4bfcf6a59679fdc3a6b3fab8 100644 |
--- a/content/browser/frame_host/render_frame_host_manager_unittest.cc |
+++ b/content/browser/frame_host/render_frame_host_manager_unittest.cc |
@@ -7,6 +7,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "base/test/histogram_tester.h" |
#include "base/time/time.h" |
+#include "content/browser/compositor/test/no_transport_image_transport_factory.h" |
#include "content/browser/frame_host/cross_site_transferring_request.h" |
#include "content/browser/frame_host/navigation_controller_impl.h" |
#include "content/browser/frame_host/navigation_entry_impl.h" |
@@ -270,6 +271,10 @@ class RenderFrameHostManagerTest : public RenderViewHostImplTestHarness { |
void SetUp() override { |
RenderViewHostImplTestHarness::SetUp(); |
WebUIControllerFactory::RegisterFactory(&factory_); |
+#if !defined(OS_ANDROID) |
+ ImageTransportFactory::InitializeForUnitTests( |
+ make_scoped_ptr(new NoTransportImageTransportFactory)); |
+#endif |
} |
void TearDown() override { |