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

Side by Side Diff: content/test/test_blink_web_unit_test_support.h

Issue 959803003: web-threads: Create a single instance of WebThread for each blink thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « content/child/webthread_impl.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const blink::WebURLError& error); 79 const blink::WebURLError& error);
80 virtual void unregisterMockedURL(const blink::WebURL& url); 80 virtual void unregisterMockedURL(const blink::WebURL& url);
81 virtual void unregisterAllMockedURLs(); 81 virtual void unregisterAllMockedURLs();
82 virtual void serveAsynchronousMockedRequests(); 82 virtual void serveAsynchronousMockedRequests();
83 virtual blink::WebString webKitRootDir(); 83 virtual blink::WebString webKitRootDir();
84 virtual blink::WebLayerTreeView* createLayerTreeViewForTesting(); 84 virtual blink::WebLayerTreeView* createLayerTreeViewForTesting();
85 virtual blink::WebData readFromFile(const blink::WebString& path); 85 virtual blink::WebData readFromFile(const blink::WebString& path);
86 virtual bool getBlobItems(const blink::WebString& uuid, 86 virtual bool getBlobItems(const blink::WebString& uuid,
87 blink::WebVector<blink::WebBlobData::Item*>* items); 87 blink::WebVector<blink::WebBlobData::Item*>* items);
88 virtual blink::WebScheduler* scheduler(); 88 virtual blink::WebScheduler* scheduler();
89 virtual blink::WebThread* currentThread();
89 90
90 private: 91 private:
91 MockWebBlobRegistryImpl blob_registry_; 92 MockWebBlobRegistryImpl blob_registry_;
92 SimpleWebMimeRegistryImpl mime_registry_; 93 SimpleWebMimeRegistryImpl mime_registry_;
93 scoped_ptr<MockWebClipboardImpl> mock_clipboard_; 94 scoped_ptr<MockWebClipboardImpl> mock_clipboard_;
94 WebFileUtilitiesImpl file_utilities_; 95 WebFileUtilitiesImpl file_utilities_;
95 base::ScopedTempDir file_system_root_; 96 base::ScopedTempDir file_system_root_;
96 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_; 97 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_;
97 cc_blink::WebCompositorSupportImpl compositor_support_; 98 cc_blink::WebCompositorSupportImpl compositor_support_;
98 scoped_ptr<RendererScheduler> renderer_scheduler_; 99 scoped_ptr<RendererScheduler> renderer_scheduler_;
99 scoped_ptr<WebSchedulerImpl> web_scheduler_; 100 scoped_ptr<WebSchedulerImpl> web_scheduler_;
101 scoped_ptr<blink::WebThread> web_thread_;
100 102
101 #if defined(OS_WIN) || defined(OS_MACOSX) 103 #if defined(OS_WIN) || defined(OS_MACOSX)
102 blink::WebThemeEngine* active_theme_engine_; 104 blink::WebThemeEngine* active_theme_engine_;
103 #endif 105 #endif
104 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); 106 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport);
105 }; 107 };
106 108
107 } // namespace content 109 } // namespace content
108 110
109 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ 111 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/child/webthread_impl.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698