| 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 "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void registerMockedErrorURL(const blink::WebURL& url, | 80 void registerMockedErrorURL(const blink::WebURL& url, |
| 81 const blink::WebURLResponse& response, | 81 const blink::WebURLResponse& response, |
| 82 const blink::WebURLError& error) override; | 82 const blink::WebURLError& error) override; |
| 83 void unregisterMockedURL(const blink::WebURL& url) override; | 83 void unregisterMockedURL(const blink::WebURL& url) override; |
| 84 void unregisterAllMockedURLs() override; | 84 void unregisterAllMockedURLs() override; |
| 85 void serveAsynchronousMockedRequests() override; | 85 void serveAsynchronousMockedRequests() override; |
| 86 void setLoaderDelegate(blink::WebURLLoaderTestDelegate* delegate) override; | 86 void setLoaderDelegate(blink::WebURLLoaderTestDelegate* delegate) override; |
| 87 blink::WebLayerTreeView* createLayerTreeViewForTesting() override; | 87 blink::WebLayerTreeView* createLayerTreeViewForTesting() override; |
| 88 blink::WebData readFromFile(const blink::WebString& path) override; | 88 blink::WebData readFromFile(const blink::WebString& path) override; |
| 89 blink::WebThread* currentThread() override; | 89 blink::WebThread* currentThread() override; |
| 90 void enterRunLoop() override; | |
| 91 void exitRunLoop() override; | |
| 92 | 90 |
| 93 void getPluginList(bool refresh, | 91 void getPluginList(bool refresh, |
| 94 blink::WebPluginListBuilder* builder) override; | 92 blink::WebPluginListBuilder* builder) override; |
| 95 | 93 |
| 96 private: | 94 private: |
| 97 MockWebBlobRegistryImpl blob_registry_; | 95 MockWebBlobRegistryImpl blob_registry_; |
| 98 SimpleWebMimeRegistryImpl mime_registry_; | 96 SimpleWebMimeRegistryImpl mime_registry_; |
| 99 scoped_ptr<MockWebClipboardImpl> mock_clipboard_; | 97 scoped_ptr<MockWebClipboardImpl> mock_clipboard_; |
| 100 WebFileUtilitiesImpl file_utilities_; | 98 WebFileUtilitiesImpl file_utilities_; |
| 101 base::ScopedTempDir file_system_root_; | 99 base::ScopedTempDir file_system_root_; |
| 102 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_; | 100 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_; |
| 103 cc_blink::WebCompositorSupportImpl compositor_support_; | 101 cc_blink::WebCompositorSupportImpl compositor_support_; |
| 104 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_; | 102 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_; |
| 105 scoped_ptr<blink::WebThread> web_thread_; | 103 scoped_ptr<blink::WebThread> web_thread_; |
| 106 | 104 |
| 107 #if defined(OS_WIN) || defined(OS_MACOSX) | 105 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 108 blink::WebThemeEngine* active_theme_engine_; | 106 blink::WebThemeEngine* active_theme_engine_; |
| 109 #endif | 107 #endif |
| 110 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); | 108 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); |
| 111 }; | 109 }; |
| 112 | 110 |
| 113 } // namespace content | 111 } // namespace content |
| 114 | 112 |
| 115 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ | 113 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ |
| OLD | NEW |