| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ | 5 #ifndef CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ |
| 6 #define CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ | 6 #define CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 blink::WebGestureCurve* createFlingAnimationCurve( | 69 blink::WebGestureCurve* createFlingAnimationCurve( |
| 70 blink::WebGestureDevice device_source, | 70 blink::WebGestureDevice device_source, |
| 71 const blink::WebFloatPoint& velocity, | 71 const blink::WebFloatPoint& velocity, |
| 72 const blink::WebSize& cumulative_scroll) override; | 72 const blink::WebSize& cumulative_scroll) override; |
| 73 | 73 |
| 74 blink::WebURLLoaderMockFactory* getURLLoaderMockFactory() override; | 74 blink::WebURLLoaderMockFactory* getURLLoaderMockFactory() override; |
| 75 | 75 |
| 76 blink::WebThread* currentThread() override; | 76 blink::WebThread* currentThread() override; |
| 77 | 77 |
| 78 void getPluginList(bool refresh, | 78 void getPluginList(bool refresh, |
| 79 const blink::WebSecurityOrigin& mainFrameOrigin, |
| 79 blink::WebPluginListBuilder* builder) override; | 80 blink::WebPluginListBuilder* builder) override; |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 MockWebBlobRegistryImpl blob_registry_; | 83 MockWebBlobRegistryImpl blob_registry_; |
| 83 SimpleWebMimeRegistryImpl mime_registry_; | 84 SimpleWebMimeRegistryImpl mime_registry_; |
| 84 std::unique_ptr<MockWebClipboardImpl> mock_clipboard_; | 85 std::unique_ptr<MockWebClipboardImpl> mock_clipboard_; |
| 85 WebFileUtilitiesImpl file_utilities_; | 86 WebFileUtilitiesImpl file_utilities_; |
| 86 base::ScopedTempDir file_system_root_; | 87 base::ScopedTempDir file_system_root_; |
| 87 std::unique_ptr<blink::WebURLLoaderMockFactory> url_loader_factory_; | 88 std::unique_ptr<blink::WebURLLoaderMockFactory> url_loader_factory_; |
| 88 cc_blink::WebCompositorSupportImpl compositor_support_; | 89 cc_blink::WebCompositorSupportImpl compositor_support_; |
| 89 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; | 90 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; |
| 90 std::unique_ptr<blink::WebThread> web_thread_; | 91 std::unique_ptr<blink::WebThread> web_thread_; |
| 91 | 92 |
| 92 #if defined(OS_WIN) || defined(OS_MACOSX) | 93 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 93 blink::WebThemeEngine* active_theme_engine_ = nullptr; | 94 blink::WebThemeEngine* active_theme_engine_ = nullptr; |
| 94 #endif | 95 #endif |
| 95 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); | 96 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace content | 99 } // namespace content |
| 99 | 100 |
| 100 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ | 101 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ |
| OLD | NEW |