| Index: content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
|
| diff --git a/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h b/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0f2b7b8d01607f508c039283c9ce74113ef00943
|
| --- /dev/null
|
| +++ b/content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_
|
| +#define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_
|
| +
|
| +#include "content/renderer/browser_plugin/browser_plugin_texture_provider.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +
|
| +namespace content {
|
| +
|
| +class MockBrowserPluginTextureProvider : public BrowserPluginTextureProvider {
|
| + public:
|
| + MockBrowserPluginTextureProvider(
|
| + int instance_id,
|
| + int routing_id,
|
| + IPC::ChannelProxy* channel_proxy);
|
| + virtual ~MockBrowserPluginTextureProvider() OVERRIDE;
|
| +
|
| + MOCK_METHOD1(Resize, void(const gfx::Size&));
|
| + MOCK_METHOD1(SurfaceResize, void(const gfx::Size&));
|
| + MOCK_METHOD2(SetDelayedSwap, void(uint64, const BrowserPlugin_SwapInfo&));
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_BROWSER_PLUGIN_WEB_BROWSER_PLUGIN_TEXTURE_PROVIDER_H_
|
|
|