| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "cc/blink/web_compositor_support_impl.h" | 10 #include "cc/blink/web_compositor_support_impl.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void serveAsynchronousMockedRequests(); | 84 virtual void serveAsynchronousMockedRequests(); |
| 85 virtual blink::WebString webKitRootDir(); | 85 virtual blink::WebString webKitRootDir(); |
| 86 virtual blink::WebLayerTreeView* createLayerTreeViewForTesting(); | 86 virtual blink::WebLayerTreeView* createLayerTreeViewForTesting(); |
| 87 virtual blink::WebData readFromFile(const blink::WebString& path); | 87 virtual blink::WebData readFromFile(const blink::WebString& path); |
| 88 virtual bool getBlobItems(const blink::WebString& uuid, | 88 virtual bool getBlobItems(const blink::WebString& uuid, |
| 89 blink::WebVector<blink::WebBlobData::Item*>* items); | 89 blink::WebVector<blink::WebBlobData::Item*>* items); |
| 90 virtual blink::WebThread* currentThread(); | 90 virtual blink::WebThread* currentThread(); |
| 91 virtual void enterRunLoop(); | 91 virtual void enterRunLoop(); |
| 92 virtual void exitRunLoop(); | 92 virtual void exitRunLoop(); |
| 93 | 93 |
| 94 virtual void getPluginList(bool refresh, |
| 95 blink::WebPluginListBuilder* builder); |
| 96 |
| 94 private: | 97 private: |
| 95 MockWebBlobRegistryImpl blob_registry_; | 98 MockWebBlobRegistryImpl blob_registry_; |
| 96 SimpleWebMimeRegistryImpl mime_registry_; | 99 SimpleWebMimeRegistryImpl mime_registry_; |
| 97 scoped_ptr<MockWebClipboardImpl> mock_clipboard_; | 100 scoped_ptr<MockWebClipboardImpl> mock_clipboard_; |
| 98 WebFileUtilitiesImpl file_utilities_; | 101 WebFileUtilitiesImpl file_utilities_; |
| 99 base::ScopedTempDir file_system_root_; | 102 base::ScopedTempDir file_system_root_; |
| 100 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_; | 103 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_; |
| 101 cc_blink::WebCompositorSupportImpl compositor_support_; | 104 cc_blink::WebCompositorSupportImpl compositor_support_; |
| 102 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_; | 105 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_; |
| 103 scoped_ptr<blink::WebThread> web_thread_; | 106 scoped_ptr<blink::WebThread> web_thread_; |
| 104 | 107 |
| 105 #if defined(OS_WIN) || defined(OS_MACOSX) | 108 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 106 blink::WebThemeEngine* active_theme_engine_; | 109 blink::WebThemeEngine* active_theme_engine_; |
| 107 #endif | 110 #endif |
| 108 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); | 111 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 } // namespace content | 114 } // namespace content |
| 112 | 115 |
| 113 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ | 116 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ |
| OLD | NEW |