| 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
|
| index b34a621163abf019da2ba5ae9455571abde57f96..3ee2f5353a638c00a15a48f99c04968087e6bd46 100644
|
| --- a/content/renderer/browser_plugin/mock_browser_plugin.h
|
| +++ b/content/renderer/browser_plugin/mock_browser_plugin.h
|
| @@ -6,6 +6,8 @@
|
| #define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_
|
|
|
| #include "content/renderer/browser_plugin/browser_plugin.h"
|
| +#include "content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
|
|
| namespace content {
|
|
|
| @@ -19,9 +21,22 @@ class MockBrowserPlugin : public BrowserPlugin {
|
|
|
| virtual ~MockBrowserPlugin();
|
|
|
| + // Virtual overrides from BrowserPlugin
|
| + MOCK_CONST_METHOD2(CreateTextureProvider,
|
| + MockBrowserPluginTextureProvider*(int, int));
|
| +
|
| + // Access to private members should be in the form of functions
|
| + // to isolate tests from internal representation changes
|
| + bool ignoringInput() { return ignore_input_; }
|
| + bool hasTextureProvider() { return provider_; }
|
| + int instance_id() { return instance_id_; }
|
| + RenderViewImpl* render_view() { return render_view_; }
|
| +
|
| // Allow poking at a few private members.
|
| using BrowserPlugin::guest_crashed_;
|
| using BrowserPlugin::resize_pending_;
|
| + using BrowserPlugin::width;
|
| + using BrowserPlugin::height;
|
| };
|
|
|
| } // namespace content
|
|
|