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

Side by Side Diff: content/renderer/browser_plugin/mock_browser_plugin_texture_provider.h

Issue 11359024: Texture provider to feed data to the impl side thread for webview compositing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 scoped_refptr<base::MessageLoopProxy> message_loop);
20 virtual ~MockBrowserPluginTextureProvider();
21
22 MOCK_METHOD1(Send, bool(IPC::Message*));
23 MOCK_METHOD0(SetUpFilter, void());
24 MOCK_METHOD0(RemoveFilter, void());
25 virtual void Destroy();
26 // Make the object think we are on the correct thread for testing
27 virtual bool IsOnCorrectThread() OVERRIDE;
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_TEXTURE_PROVIDER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698