OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ |
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
12 #include "content/public/test/render_view_test.h" | 12 #include "content/public/test/render_view_test.h" |
13 #include "content/renderer/browser_plugin/mock_browser_plugin_manager.h" | 13 #include "content/renderer/browser_plugin/mock_browser_plugin_manager.h" |
14 #include "content/renderer/render_view_impl.h" | 14 #include "content/renderer/render_view_impl.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 16 #include "third_party/WebKit/public/platform/WebSize.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
18 | 18 |
19 class RenderThreadImpl; | 19 class RenderThreadImpl; |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 class TestContentRendererClient; | 23 class TestContentRendererClient; |
24 | 24 |
25 class BrowserPluginTest : public RenderViewTest { | 25 class BrowserPluginTest : public RenderViewTest { |
26 public: | 26 public: |
(...skipping 10 matching lines...) Expand all Loading... |
37 int ExecuteScriptAndReturnInt(const std::string& script); | 37 int ExecuteScriptAndReturnInt(const std::string& script); |
38 bool ExecuteScriptAndReturnBool(const std::string& script, bool* result); | 38 bool ExecuteScriptAndReturnBool(const std::string& script, bool* result); |
39 private: | 39 private: |
40 scoped_ptr<TestContentRendererClient> test_content_renderer_client_; | 40 scoped_ptr<TestContentRendererClient> test_content_renderer_client_; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace content | 43 } // namespace content |
44 | 44 |
45 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ | 45 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BROWSERETEST_H_ |
46 | 46 |
OLD | NEW |