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

Unified Diff: content/renderer/browser_plugin/tests/mock_browser_plugin.h

Issue 10830072: Browser Plugin: New Implementation (Renderer Side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed leaky Persistents in BrowserPlugin Created 8 years, 5 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
Index: content/renderer/browser_plugin/tests/mock_browser_plugin.h
diff --git a/content/renderer/browser_plugin/tests/mock_browser_plugin.h b/content/renderer/browser_plugin/tests/mock_browser_plugin.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d8f36966fdc5afe44f3f2eb0ff3f8208a45f126
--- /dev/null
+++ b/content/renderer/browser_plugin/tests/mock_browser_plugin.h
@@ -0,0 +1,34 @@
+#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_TESTS_MOCK_BROWSER_PLUGIN_H_
+#define CONTENT_RENDERER_BROWSER_PLUGIN_TESTS_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 pocking at a few private members.
Charlie Reis 2012/08/01 23:20:51 poking
Fady Samuel 2012/08/02 18:32:47 Done.
+ 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_TESTS_MOCK_BROWSER_PLUGIN_H_

Powered by Google App Engine
This is Rietveld 408576698