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 namespace browser_plugin { |
| 23 |
| 24 class BrowserPluginTest : public RenderViewTest { |
| 25 public: |
| 26 BrowserPluginTest(); |
| 27 virtual void SetUp() OVERRIDE; |
| 28 virtual void TearDown() OVERRIDE; |
| 29 MockBrowserPluginManager* browser_plugin_manager() const { |
| 30 return browser_plugin_manager_.get(); |
| 31 } |
| 32 std::string ExecuteScriptAndReturnString(const std::string& script); |
| 33 private: |
| 34 scoped_ptr<MockBrowserPluginManager> browser_plugin_manager_; |
| 35 ContentRendererClient content_renderer_client_; |
| 36 }; |
| 37 } // namespace browser_plugin |
| 38 } // namesapce content |
| 39 |
| 40 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ |
| 41 |
OLD | NEW |