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

Unified Diff: content/test/mock_gpu_channel_establish_factory.cc

Issue 2250473005: content: Fix Context creation logic in ContextProviderFactoryImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use mock factory Created 4 years, 4 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
« no previous file with comments | « content/test/mock_gpu_channel_establish_factory.h ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_gpu_channel_establish_factory.cc
diff --git a/content/test/mock_gpu_channel_establish_factory.cc b/content/test/mock_gpu_channel_establish_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..123367edac3168bbf17ef8739f1568edf646f77f
--- /dev/null
+++ b/content/test/mock_gpu_channel_establish_factory.cc
@@ -0,0 +1,28 @@
+// Copyright 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/test/mock_gpu_channel_establish_factory.h"
+
+namespace content {
+
+MockGpuChannelEstablishFactory::MockGpuChannelEstablishFactory() = default;
+
+MockGpuChannelEstablishFactory::~MockGpuChannelEstablishFactory() = default;
+
+void MockGpuChannelEstablishFactory::EstablishGpuChannel(
+ const gpu::GpuChannelEstablishedCallback& callback) {
+ callback.Run(nullptr);
+}
+
+scoped_refptr<gpu::GpuChannelHost>
+MockGpuChannelEstablishFactory::EstablishGpuChannelSync() {
+ return nullptr;
+}
+
+gpu::GpuMemoryBufferManager*
+MockGpuChannelEstablishFactory::GetGpuMemoryBufferManager() {
+ return nullptr;
+}
+
+} // namespace content
« no previous file with comments | « content/test/mock_gpu_channel_establish_factory.h ('k') | content/test/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698