OLD | NEW |
(Empty) | |
| 1 #include "content/renderer/browser_plugin/tests/mock_browser_plugin.h" |
| 2 |
| 3 namespace content { |
| 4 namespace browser_plugin { |
| 5 |
| 6 MockBrowserPlugin::MockBrowserPlugin( |
| 7 int id, |
| 8 RenderViewImpl* render_view, |
| 9 int routing_id, |
| 10 WebKit::WebFrame* frame, |
| 11 const WebKit::WebPluginParams& params) |
| 12 : BrowserPlugin(id, render_view, routing_id, frame, params), |
| 13 transport_dib_next_sequence_number_(0) { |
| 14 } |
| 15 |
| 16 MockBrowserPlugin::~MockBrowserPlugin() {} |
| 17 |
| 18 TransportDIB* MockBrowserPlugin::CreateTransportDIB(size_t size) { |
| 19 return TransportDIB::Create(size, transport_dib_next_sequence_number_++); |
| 20 } |
| 21 |
| 22 void MockBrowserPlugin::FreeTransportDIB(TransportDIB* dib) { |
| 23 delete dib; |
| 24 } |
| 25 |
| 26 } // namespace browser_plugin |
| 27 } // namespace content |
OLD | NEW |