| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_ |
| 7 |
| 8 #include "content/renderer/browser_plugin/browser_plugin_texture_provider.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class MockBrowserPluginTextureProvider : public BrowserPluginTextureProvider { |
| 14 public: |
| 15 MockBrowserPluginTextureProvider( |
| 16 int instance_id, |
| 17 int routing_id, |
| 18 IPC::ChannelProxy* channel_proxy); |
| 19 virtual ~MockBrowserPluginTextureProvider() OVERRIDE; |
| 20 |
| 21 MOCK_METHOD1(Resize, void(const gfx::Size&)); |
| 22 MOCK_METHOD1(SurfaceResize, void(const gfx::Size&)); |
| 23 MOCK_METHOD2(SetDelayedSwap, void(uint64, const BrowserPlugin_SwapInfo&)); |
| 24 }; |
| 25 |
| 26 } // namespace content |
| 27 |
| 28 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_WEB_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_ |
| OLD | NEW |