Index: content/renderer/browser_plugin/mock_browser_plugin.h |
diff --git a/content/renderer/browser_plugin/mock_browser_plugin.h b/content/renderer/browser_plugin/mock_browser_plugin.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..966ff12b2c0ed193eaa49b87f09bcd57f586e03d |
--- /dev/null |
+++ b/content/renderer/browser_plugin/mock_browser_plugin.h |
@@ -0,0 +1,34 @@ |
+#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_ |
+#define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_ |
+ |
+#include "content/renderer/browser_plugin/browser_plugin.h" |
+ |
+namespace content { |
+namespace browser_plugin { |
+ |
+class MockBrowserPlugin : public BrowserPlugin { |
+ public: |
+ MockBrowserPlugin( |
+ int id, |
+ RenderViewImpl* render_view, |
+ int routing_id, |
+ WebKit::WebFrame* frame, |
+ const WebKit::WebPluginParams& params); |
+ |
+ virtual ~MockBrowserPlugin(); |
+ |
+ virtual TransportDIB* CreateTransportDIB(size_t size) OVERRIDE; |
+ virtual void FreeTransportDIB(TransportDIB* dib) OVERRIDE; |
+ |
+ |
+ // Allow poking at a few private members. |
+ using BrowserPlugin::guest_crashed_; |
+ using BrowserPlugin::resize_pending_; |
+ private: |
+ uint32 transport_dib_next_sequence_number_; |
+}; |
+ |
+} // namespace browser_plugin |
+} // namespace content |
+ |
+#endif // CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_ |