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_BROWSER_PLUGIN_BROWSERETEST_H_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "content/public/renderer/content_renderer_client.h" |
| 12 #include "content/public/test/render_view_test.h" |
| 13 #include "content/renderer/browser_plugin/mock_browser_plugin_manager.h" |
| 14 #include "content/renderer/render_view_impl.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 18 |
| 19 class RenderThreadImpl; |
| 20 |
| 21 namespace content { |
| 22 |
| 23 class BrowserPluginTest : public RenderViewTest { |
| 24 public: |
| 25 BrowserPluginTest(); |
| 26 virtual ~BrowserPluginTest(); |
| 27 |
| 28 virtual void SetUp() OVERRIDE; |
| 29 virtual void TearDown() OVERRIDE; |
| 30 MockBrowserPluginManager* browser_plugin_manager() const { |
| 31 return browser_plugin_manager_.get(); |
| 32 } |
| 33 std::string ExecuteScriptAndReturnString(const std::string& script); |
| 34 private: |
| 35 scoped_ptr<MockBrowserPluginManager> browser_plugin_manager_; |
| 36 ContentRendererClient content_renderer_client_; |
| 37 }; |
| 38 |
| 39 } // namespace content |
| 40 |
| 41 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ |
| 42 |
OLD | NEW |