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

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

Issue 2297273004: Revert "Revert of content: Fix Context creation logic in ContextProviderFactoryImpl. (patchset #10 … (Closed)
Patch Set: remove gpu process initialization failure Created 4 years, 3 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/render_widget_host_view_child_frame_unittest.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc b/content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc
index 0ed06c3cb7a26aee191f45fc5c4c5fafa18e4cf2..685e7bd7d437b6b16715d43e21630ffe75c42d37 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc
@@ -32,6 +32,7 @@
#if defined(OS_ANDROID)
#include "content/browser/renderer_host/context_provider_factory_impl_android.h"
+#include "content/test/mock_gpu_channel_establish_factory.h"
#endif
namespace content {
@@ -85,6 +86,7 @@ class RenderWidgetHostViewChildFrameTest : public testing::Test {
ImageTransportFactory::InitializeForUnitTests(
base::WrapUnique(new NoTransportImageTransportFactory));
#else
+ ContextProviderFactoryImpl::Initialize(&gpu_channel_factory_);
ui::ContextProviderFactory::SetInstance(
ContextProviderFactoryImpl::GetInstance());
#endif
@@ -115,6 +117,7 @@ class RenderWidgetHostViewChildFrameTest : public testing::Test {
ImageTransportFactory::Terminate();
#else
ui::ContextProviderFactory::SetInstance(nullptr);
+ ContextProviderFactoryImpl::Terminate();
#endif
}
@@ -131,6 +134,10 @@ class RenderWidgetHostViewChildFrameTest : public testing::Test {
RenderWidgetHostViewChildFrame* view_;
MockCrossProcessFrameConnector* test_frame_connector_;
+#if defined(OS_ANDROID)
+ MockGpuChannelEstablishFactory gpu_channel_factory_;
+#endif
+
private:
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrameTest);
};
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/frame_host/render_widget_host_view_guest_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698