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

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

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use the correct baseline Created 8 years, 4 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/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

Powered by Google App Engine
This is Rietveld 408576698