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

Unified Diff: content/renderer/browser_plugin/tests/browser_plugin_browsertest.h

Issue 10830072: Browser Plugin: New Implementation (Renderer Side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed leaky Persistents in BrowserPlugin Created 8 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/browser_plugin/tests/browser_plugin_browsertest.h
diff --git a/content/renderer/browser_plugin/tests/browser_plugin_browsertest.h b/content/renderer/browser_plugin/tests/browser_plugin_browsertest.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f604e49771cae0f47aa35b74d8591449613484f
--- /dev/null
+++ b/content/renderer/browser_plugin/tests/browser_plugin_browsertest.h
@@ -0,0 +1,42 @@
+// 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_TESTS_BROWSER_PLUGIN_BROWSERETEST_H_
+#define CONTENT_RENDERER_BROWSER_PLUGIN_TESTS_BROWSER_PLUGIN_BROWSERETEST_H_
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+#include "content/public/renderer/content_renderer_client.h"
+#include "content/public/test/render_view_test.h"
+#include "content/renderer/browser_plugin/tests/mock_browser_plugin_manager.h"
+#include "content/renderer/render_view_impl.h"
+#include "testing/gtest/include/gtest/gtest.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
+
+class RenderThreadImpl;
+
+namespace content {
+namespace browser_plugin {
+
+class BrowserPluginTest : public RenderViewTest {
+ public:
+ BrowserPluginTest();
+ virtual void SetUp() OVERRIDE;
+ virtual void TearDown() OVERRIDE;
+ MockBrowserPluginManager* browser_plugin_manager() const {
+ return browser_plugin_manager_.get();
+ }
+ std::string ExecuteScriptAndReturnString(const std::string& script
+ );
Charlie Reis 2012/08/01 23:20:51 No newline here.
Fady Samuel 2012/08/02 18:32:47 Oops. Fixed, thanks!
+ private:
+ scoped_ptr<MockBrowserPluginManager> browser_plugin_manager_;
+ ContentRendererClient content_renderer_client_;
+};
+} // namespace browser_plugin
+} // namesapce content
+
+#endif // CONTENT_RENDERER_BROWSER_PLUGIN_TESTS_BROWSER_PLUGIN_BROWSERETEST_H_
+

Powered by Google App Engine
This is Rietveld 408576698