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_ |