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

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

Issue 456413002: Move the user agent styles sheets to blink_resources.grd (Part 2) with Unit test support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/test/test_content_client.cc ('k') | content/test/test_webkit_platform_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_WEBKIT_PLATFORM_SUPPORT_H_ 5 #ifndef CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_
6 #define CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 6 #define CONTENT_TEST_TEST_WEBKIT_PLATFORM_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 "content/child/blink_platform_impl.h" 10 #include "content/child/blink_platform_impl.h"
11 #include "content/child/simple_webmimeregistry_impl.h" 11 #include "content/child/simple_webmimeregistry_impl.h"
12 #include "content/child/webfileutilities_impl.h" 12 #include "content/child/webfileutilities_impl.h"
13 #include "content/renderer/compositor_bindings/web_compositor_support_impl.h" 13 #include "content/renderer/compositor_bindings/web_compositor_support_impl.h"
14 #include "content/test/mock_webblob_registry_impl.h" 14 #include "content/test/mock_webblob_registry_impl.h"
15 #include "content/test/mock_webclipboard_impl.h" 15 #include "content/test/mock_webclipboard_impl.h"
16 #include "content/test/weburl_loader_mock_factory.h" 16 #include "content/test/weburl_loader_mock_factory.h"
17 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" 17 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h"
18 18
19 namespace base { 19 namespace base {
20 class StatsTable; 20 class StatsTable;
21 } 21 }
22 22
23 namespace blink { 23 namespace blink {
24 class WebLayerTreeView; 24 class WebLayerTreeView;
25 } 25 }
26 26
27 namespace content { 27 namespace content {
28 class TestContentClientInitializer;
28 29
29 // An implementation of WebKitPlatformSupport for tests. 30 // An implementation of WebKitPlatformSupport for tests.
30 class TestWebKitPlatformSupport 31 class TestWebKitPlatformSupport
31 : public blink::WebUnitTestSupport, 32 : public blink::WebUnitTestSupport,
32 public BlinkPlatformImpl { 33 public BlinkPlatformImpl {
33 public: 34 public:
34 TestWebKitPlatformSupport(); 35 TestWebKitPlatformSupport();
35 virtual ~TestWebKitPlatformSupport(); 36 virtual ~TestWebKitPlatformSupport();
36 37
37 virtual blink::WebBlobRegistry* blobRegistry(); 38 virtual blink::WebBlobRegistry* blobRegistry();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 93
93 private: 94 private:
94 MockWebBlobRegistryImpl blob_registry_; 95 MockWebBlobRegistryImpl blob_registry_;
95 SimpleWebMimeRegistryImpl mime_registry_; 96 SimpleWebMimeRegistryImpl mime_registry_;
96 scoped_ptr<MockWebClipboardImpl> mock_clipboard_; 97 scoped_ptr<MockWebClipboardImpl> mock_clipboard_;
97 WebFileUtilitiesImpl file_utilities_; 98 WebFileUtilitiesImpl file_utilities_;
98 base::ScopedTempDir file_system_root_; 99 base::ScopedTempDir file_system_root_;
99 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_; 100 scoped_ptr<WebURLLoaderMockFactory> url_loader_factory_;
100 WebCompositorSupportImpl compositor_support_; 101 WebCompositorSupportImpl compositor_support_;
101 scoped_ptr<base::StatsTable> stats_table_; 102 scoped_ptr<base::StatsTable> stats_table_;
103 scoped_ptr<TestContentClientInitializer> content_initializer_;
jochen (gone - plz use gerrit) 2014/08/11 14:21:18 i don't think this should happen as part of the we
102 104
103 #if defined(OS_WIN) || defined(OS_MACOSX) 105 #if defined(OS_WIN) || defined(OS_MACOSX)
104 blink::WebThemeEngine* active_theme_engine_; 106 blink::WebThemeEngine* active_theme_engine_;
105 #endif 107 #endif
106 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 108 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
107 }; 109 };
108 110
109 } // namespace content 111 } // namespace content
110 112
111 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 113 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/test/test_content_client.cc ('k') | content/test/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698