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

Unified Diff: content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h

Issue 11359024: Texture provider to feed data to the impl side thread for webview compositing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
diff --git a/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h b/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..57e1c00015777ce34fa7ea4e3691c5b31d783984
--- /dev/null
+++ b/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 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_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_
+#define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_
+
+#include "content/renderer/browser_plugin/browser_plugin_texture_provider.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace content {
+
+class MockBrowserPluginTextureProvider : public BrowserPluginTextureProvider {
+ public:
+ MockBrowserPluginTextureProvider(
+ int instance_id,
+ int routing_id,
+ IPC::ChannelProxy* channel_proxy,
+ scoped_refptr<base::MessageLoopProxy> message_loop);
+ virtual ~MockBrowserPluginTextureProvider();
+
+ MOCK_METHOD1(Send, bool(IPC::Message*));
+ MOCK_METHOD0(SetUpFilter, void());
+ MOCK_METHOD0(RemoveFilter, void());
+ virtual void Destroy();
+ // Make the object think we are on the correct thread for testing
+ virtual bool IsOnCorrectThread() OVERRIDE;
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698