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

Unified Diff: content/test/mock_gpu_channel_establish_factory.h

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/public/test/test_renderer_host.cc ('k') | content/test/mock_gpu_channel_establish_factory.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.h
diff --git a/content/test/mock_gpu_channel_establish_factory.h b/content/test/mock_gpu_channel_establish_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..a0d741e4e19161f88d18a8de01cf0c6dc77b5a15
--- /dev/null
+++ b/content/test/mock_gpu_channel_establish_factory.h
@@ -0,0 +1,26 @@
+// 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.
+
+#ifndef CONTENT_TEST_MOCK_GPU_CHANNEL_ESTABLISH_FACTORY_H_
+#define CONTENT_TEST_MOCK_GPU_CHANNEL_ESTABLISH_FACTORY_H_
+
+#include "base/macros.h"
+#include "gpu/ipc/client/gpu_channel_host.h"
+
+namespace content {
+
+class MockGpuChannelEstablishFactory : public gpu::GpuChannelEstablishFactory {
+ public:
+ MockGpuChannelEstablishFactory();
+ ~MockGpuChannelEstablishFactory() override;
+
+ void EstablishGpuChannel(
+ const gpu::GpuChannelEstablishedCallback& callback) override;
+ scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync() override;
+ gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
+};
+
+} // namespace content
+
+#endif // CONTENT_TEST_MOCK_GPU_CHANNEL_ESTABLISH_FACTORY_H_
« no previous file with comments | « content/public/test/test_renderer_host.cc ('k') | content/test/mock_gpu_channel_establish_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698