OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//third_party/WebKit/Source/bindings/bindings.gni") | 7 import("//third_party/WebKit/Source/bindings/bindings.gni") |
8 import("//third_party/WebKit/Source/config.gni") | 8 import("//third_party/WebKit/Source/config.gni") |
9 import("//third_party/WebKit/Source/core/core.gni") | 9 import("//third_party/WebKit/Source/core/core.gni") |
10 import("//third_party/WebKit/Source/modules/modules.gni") | 10 import("//third_party/WebKit/Source/modules/modules.gni") |
11 import("//third_party/WebKit/Source/platform/platform.gni") | 11 import("//third_party/WebKit/Source/platform/platform.gni") |
12 | 12 |
13 visibility = [ "//third_party/WebKit/*" ] | 13 visibility = [ "//third_party/WebKit/*" ] |
14 web_gypi = exec_script("//build/gypi_to_gn.py", | |
15 [ rebase_path("web.gypi") ], | |
16 "scope", | |
17 [ "web.gypi" ]) | |
18 web_unittest_files = web_gypi.web_unittest_files | |
19 | 14 |
20 component("web") { | 15 component("web") { |
21 output_name = "blink_web" | 16 output_name = "blink_web" |
22 | 17 |
23 deps = [ | 18 deps = [ |
24 "//skia", | 19 "//skia", |
25 "//third_party/WebKit/Source/core", | 20 "//third_party/WebKit/Source/core", |
26 "//third_party/WebKit/Source/modules", | 21 "//third_party/WebKit/Source/modules", |
27 "//third_party/WebKit/Source/platform", | 22 "//third_party/WebKit/Source/platform", |
28 "//third_party/angle:translator", | 23 "//third_party/angle:translator", |
29 "//third_party/icu", | 24 "//third_party/icu", |
30 "//ui/gfx/geometry", | 25 "//ui/gfx/geometry", |
31 "//v8", | 26 "//v8", |
32 ] | 27 ] |
33 | 28 |
34 configs += [ | 29 configs += [ |
35 "//build/config/compiler:wexit_time_destructors", | 30 "//build/config/compiler:wexit_time_destructors", |
36 "//third_party/WebKit/Source:config", | 31 "//third_party/WebKit/Source:config", |
37 "//third_party/WebKit/Source:inside_blink", | 32 "//third_party/WebKit/Source:inside_blink", |
38 "//third_party/WebKit/Source:non_test_config", | 33 "//third_party/WebKit/Source:non_test_config", |
39 ] | 34 ] |
40 | 35 |
41 defines = [ "BLINK_WEB_IMPLEMENTATION=1" ] | 36 defines = [ "BLINK_WEB_IMPLEMENTATION=1" ] |
42 | 37 |
43 sources = web_gypi.web_files | 38 sources = [ |
| 39 "AssertMatchingEnums.cpp", |
| 40 "AssociatedURLLoader.cpp", |
| 41 "AssociatedURLLoader.h", |
| 42 "AudioOutputDeviceClientImpl.cpp", |
| 43 "AudioOutputDeviceClientImpl.h", |
| 44 "ChromeClientImpl.cpp", |
| 45 "ChromeClientImpl.h", |
| 46 "ColorChooserPopupUIController.cpp", |
| 47 "ColorChooserPopupUIController.h", |
| 48 "ColorChooserUIController.cpp", |
| 49 "ColorChooserUIController.h", |
| 50 "CompositionUnderlineBuilder.h", |
| 51 "CompositionUnderlineVectorBuilder.cpp", |
| 52 "CompositionUnderlineVectorBuilder.h", |
| 53 "CompositorMutatorImpl.cpp", |
| 54 "CompositorMutatorImpl.h", |
| 55 "CompositorProxyClientImpl.cpp", |
| 56 "CompositorProxyClientImpl.h", |
| 57 "ContextFeaturesClientImpl.cpp", |
| 58 "ContextFeaturesClientImpl.h", |
| 59 "ContextMenuAllowedScope.cpp", |
| 60 "ContextMenuAllowedScope.h", |
| 61 "ContextMenuClientImpl.cpp", |
| 62 "ContextMenuClientImpl.h", |
| 63 "DatabaseClientImpl.cpp", |
| 64 "DatabaseClientImpl.h", |
| 65 "DateTimeChooserImpl.cpp", |
| 66 "DateTimeChooserImpl.h", |
| 67 "DedicatedWorkerGlobalScopeProxyProviderImpl.cpp", |
| 68 "DedicatedWorkerGlobalScopeProxyProviderImpl.h", |
| 69 "DevToolsEmulator.cpp", |
| 70 "DevToolsEmulator.h", |
| 71 "EditorClientImpl.cpp", |
| 72 "EditorClientImpl.h", |
| 73 "ExternalDateTimeChooser.cpp", |
| 74 "ExternalDateTimeChooser.h", |
| 75 "ExternalPopupMenu.cpp", |
| 76 "ExternalPopupMenu.h", |
| 77 "FindInPageCoordinates.cpp", |
| 78 "FindInPageCoordinates.h", |
| 79 "FrameLoaderClientImpl.cpp", |
| 80 "FrameLoaderClientImpl.h", |
| 81 "FullscreenController.cpp", |
| 82 "FullscreenController.h", |
| 83 "IndexedDBClientImpl.cpp", |
| 84 "IndexedDBClientImpl.h", |
| 85 "InspectorEmulationAgent.cpp", |
| 86 "InspectorEmulationAgent.h", |
| 87 "InspectorOverlay.cpp", |
| 88 "InspectorOverlay.h", |
| 89 "InspectorRenderingAgent.cpp", |
| 90 "InspectorRenderingAgent.h", |
| 91 "LinkHighlightImpl.cpp", |
| 92 "LinkHighlightImpl.h", |
| 93 "LocalFileSystemClient.cpp", |
| 94 "LocalFileSystemClient.h", |
| 95 "MediaKeysClientImpl.cpp", |
| 96 "MediaKeysClientImpl.h", |
| 97 "NavigatorContentUtilsClientImpl.cpp", |
| 98 "NavigatorContentUtilsClientImpl.h", |
| 99 "OpenedFrameTracker.cpp", |
| 100 "OpenedFrameTracker.h", |
| 101 "PageOverlay.cpp", |
| 102 "PageOverlay.h", |
| 103 "PageWidgetDelegate.cpp", |
| 104 "PageWidgetDelegate.h", |
| 105 "PopupMenuImpl.cpp", |
| 106 "PopupMenuImpl.h", |
| 107 "PrerendererClientImpl.cpp", |
| 108 "PrerendererClientImpl.h", |
| 109 "RemoteFrameClientImpl.cpp", |
| 110 "RemoteFrameClientImpl.h", |
| 111 "RemoteFrameOwner.cpp", |
| 112 "RemoteFrameOwner.h", |
| 113 "ResizeViewportAnchor.cpp", |
| 114 "ResizeViewportAnchor.h", |
| 115 "RotationViewportAnchor.cpp", |
| 116 "RotationViewportAnchor.h", |
| 117 "ServiceWorkerGlobalScopeClientImpl.cpp", |
| 118 "ServiceWorkerGlobalScopeClientImpl.h", |
| 119 "ServiceWorkerGlobalScopeProxy.cpp", |
| 120 "ServiceWorkerGlobalScopeProxy.h", |
| 121 "SharedWorkerRepositoryClientImpl.cpp", |
| 122 "SharedWorkerRepositoryClientImpl.h", |
| 123 "SpeechRecognitionClientProxy.cpp", |
| 124 "SpeechRecognitionClientProxy.h", |
| 125 "SpellCheckerClientImpl.cpp", |
| 126 "SpellCheckerClientImpl.h", |
| 127 "StorageClientImpl.cpp", |
| 128 "StorageClientImpl.h", |
| 129 "StorageQuotaClientImpl.cpp", |
| 130 "StorageQuotaClientImpl.h", |
| 131 "SuspendableScriptExecutor.cpp", |
| 132 "SuspendableScriptExecutor.h", |
| 133 "TextFinder.cpp", |
| 134 "TextFinder.h", |
| 135 "UserMediaClientImpl.cpp", |
| 136 "UserMediaClientImpl.h", |
| 137 "ValidationMessageClientImpl.cpp", |
| 138 "ValidationMessageClientImpl.h", |
| 139 "WebAXObject.cpp", |
| 140 "WebArrayBuffer.cpp", |
| 141 "WebArrayBufferConverter.cpp", |
| 142 "WebArrayBufferView.cpp", |
| 143 "WebBlob.cpp", |
| 144 "WebCSSParser.cpp", |
| 145 "WebCache.cpp", |
| 146 "WebColorSuggestion.cpp", |
| 147 "WebCryptoNormalize.cpp", |
| 148 "WebCustomElement.cpp", |
| 149 "WebDOMActivityLogger.cpp", |
| 150 "WebDOMEvent.cpp", |
| 151 "WebDOMFileSystem.cpp", |
| 152 "WebDOMMediaStreamTrack.cpp", |
| 153 "WebDOMMessageEvent.cpp", |
| 154 "WebDataSourceImpl.cpp", |
| 155 "WebDataSourceImpl.h", |
| 156 "WebDatabase.cpp", |
| 157 "WebDateTimeSuggestion.cpp", |
| 158 "WebDevToolsAgentImpl.cpp", |
| 159 "WebDevToolsAgentImpl.h", |
| 160 "WebDevToolsFrontendImpl.cpp", |
| 161 "WebDevToolsFrontendImpl.h", |
| 162 "WebDocument.cpp", |
| 163 "WebElement.cpp", |
| 164 "WebElementCollection.cpp", |
| 165 "WebEmbeddedWorkerImpl.cpp", |
| 166 "WebEmbeddedWorkerImpl.h", |
| 167 "WebEntities.cpp", |
| 168 "WebEntities.h", |
| 169 "WebExport.h", |
| 170 "WebFileChooserCompletionImpl.cpp", |
| 171 "WebFileChooserCompletionImpl.h", |
| 172 "WebFormControlElement.cpp", |
| 173 "WebFormElement.cpp", |
| 174 "WebFrame.cpp", |
| 175 "WebFrameContentDumper.cpp", |
| 176 "WebFrameImplBase.cpp", |
| 177 "WebFrameImplBase.h", |
| 178 "WebFrameSerializer.cpp", |
| 179 "WebFrameSerializerImpl.cpp", |
| 180 "WebFrameSerializerImpl.h", |
| 181 "WebFrameWidgetBase.h", |
| 182 "WebFrameWidgetImpl.cpp", |
| 183 "WebFrameWidgetImpl.h", |
| 184 "WebHeap.cpp", |
| 185 "WebHelperPluginImpl.cpp", |
| 186 "WebHelperPluginImpl.h", |
| 187 "WebHistoryItem.cpp", |
| 188 "WebHitTestResult.cpp", |
| 189 "WebIDBKey.cpp", |
| 190 "WebIDBKeyRange.cpp", |
| 191 "WebImageCache.cpp", |
| 192 "WebImageDecoder.cpp", |
| 193 "WebInputElement.cpp", |
| 194 "WebInputEventConversion.cpp", |
| 195 "WebInputEventConversion.h", |
| 196 "WebKit.cpp", |
| 197 "WebLabelElement.cpp", |
| 198 "WebLeakDetector.cpp", |
| 199 "WebLocalFrameImpl.cpp", |
| 200 "WebLocalFrameImpl.h", |
| 201 "WebMediaDeviceChangeObserver.cpp", |
| 202 "WebMediaDevicesRequest.cpp", |
| 203 "WebMediaStreamRegistry.cpp", |
| 204 "WebMetaElement.cpp", |
| 205 "WebNetworkStateNotifier.cpp", |
| 206 "WebNode.cpp", |
| 207 "WebOptionElement.cpp", |
| 208 "WebPageImportanceSignals.cpp", |
| 209 "WebPagePopupImpl.cpp", |
| 210 "WebPagePopupImpl.h", |
| 211 "WebPepperSocket.cpp", |
| 212 "WebPepperSocketChannelClientProxy.h", |
| 213 "WebPepperSocketImpl.cpp", |
| 214 "WebPepperSocketImpl.h", |
| 215 "WebPerformance.cpp", |
| 216 "WebPluginContainerImpl.cpp", |
| 217 "WebPluginContainerImpl.h", |
| 218 "WebPluginDocument.cpp", |
| 219 "WebPluginScriptForbiddenScope.cpp", |
| 220 "WebRange.cpp", |
| 221 "WebRemoteFrameImpl.cpp", |
| 222 "WebRemoteFrameImpl.h", |
| 223 "WebRenderTheme.cpp", |
| 224 "WebRuntimeFeatures.cpp", |
| 225 "WebScopedUserGesture.cpp", |
| 226 "WebScopedWindowFocusAllowedIndicator.cpp", |
| 227 "WebScriptController.cpp", |
| 228 "WebScriptSource.cpp", |
| 229 "WebSearchableFormData.cpp", |
| 230 "WebSecurityPolicy.cpp", |
| 231 "WebSelectElement.cpp", |
| 232 "WebSelection.cpp", |
| 233 "WebSelector.cpp", |
| 234 "WebSerializedScriptValue.cpp", |
| 235 "WebSettingsImpl.cpp", |
| 236 "WebSettingsImpl.h", |
| 237 "WebSharedWorkerImpl.cpp", |
| 238 "WebSharedWorkerImpl.h", |
| 239 "WebSpeechGrammar.cpp", |
| 240 "WebSpeechRecognitionHandle.cpp", |
| 241 "WebSpeechRecognitionResult.cpp", |
| 242 "WebStorageEventDispatcherImpl.cpp", |
| 243 "WebSurroundingText.cpp", |
| 244 "WebTextCheckingCompletionImpl.cpp", |
| 245 "WebTextCheckingCompletionImpl.h", |
| 246 "WebTextCheckingResult.cpp", |
| 247 "WebTextInputInfo.cpp", |
| 248 "WebUserGestureIndicator.cpp", |
| 249 "WebUserGestureToken.cpp", |
| 250 "WebUserMediaRequest.cpp", |
| 251 "WebViewFrameWidget.cpp", |
| 252 "WebViewFrameWidget.h", |
| 253 "WebViewImpl.cpp", |
| 254 "WebViewImpl.h", |
| 255 "WorkerContentSettingsClient.cpp", |
| 256 "WorkerContentSettingsClient.h", |
| 257 "linux/WebFontRendering.cpp", |
| 258 "mac/WebScrollbarTheme.mm", |
| 259 "mac/WebSubstringUtil.mm", |
| 260 "win/WebFontRendering.cpp", |
| 261 ] |
44 | 262 |
45 if (is_android) { | 263 if (is_android) { |
46 set_sources_assignment_filter([]) | 264 set_sources_assignment_filter([]) |
47 sources += [ "linux/WebFontRendering.cpp" ] | 265 sources += [ "linux/WebFontRendering.cpp" ] |
48 set_sources_assignment_filter(sources_assignment_filter) | 266 set_sources_assignment_filter(sources_assignment_filter) |
49 } | 267 } |
50 | 268 |
51 if (is_mac) { | 269 if (is_mac) { |
52 libs = [ | 270 libs = [ |
53 "AppKit.framework", | 271 "AppKit.framework", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 "tests/data/", | 303 "tests/data/", |
86 "../core/paint/test_data/", | 304 "../core/paint/test_data/", |
87 ] | 305 ] |
88 } | 306 } |
89 | 307 |
90 # GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests | 308 # GYP version: WebKit/Source/web/web_tests.gyp:webkit_unit_tests |
91 test("webkit_unit_tests") { | 309 test("webkit_unit_tests") { |
92 visibility = [] # Allow re-assignment of list. | 310 visibility = [] # Allow re-assignment of list. |
93 visibility = [ "*" ] | 311 visibility = [ "*" ] |
94 | 312 |
| 313 sources = [ |
| 314 "AssociatedURLLoaderTest.cpp", |
| 315 "ExternalPopupMenuTest.cpp", |
| 316 "LinkHighlightImplTest.cpp", |
| 317 "PageOverlayTest.cpp", |
| 318 "WebDragDataTest.cpp", |
| 319 "WebElementTest.cpp", |
| 320 "WebEmbeddedWorkerImplTest.cpp", |
| 321 "WebNodeTest.cpp", |
| 322 "WebViewImplPaintArtifactCompositorTest.cpp", |
| 323 |
| 324 # FIXME: Move the tests from web/tests/ to appropriate places. |
| 325 # crbug.com/353585 |
| 326 "tests/ActivityLoggerTest.cpp", |
| 327 "tests/ChromeClientImplTest.cpp", |
| 328 "tests/CompositorWorkerTest.cpp", |
| 329 "tests/DocumentLoaderTest.cpp", |
| 330 "tests/DocumentLoadingRenderingTest.cpp", |
| 331 "tests/FakeWebPlugin.cpp", |
| 332 "tests/FakeWebPlugin.h", |
| 333 "tests/FrameLoaderClientImplTest.cpp", |
| 334 "tests/FrameSerializerTest.cpp", |
| 335 "tests/FrameTestHelpers.cpp", |
| 336 "tests/FrameTestHelpers.h", |
| 337 "tests/FrameThrottlingTest.cpp", |
| 338 "tests/ImeOnFocusTest.cpp", |
| 339 "tests/IntersectionObserverTest.cpp", |
| 340 "tests/KeyboardTest.cpp", |
| 341 "tests/LayoutGeometryMapTest.cpp", |
| 342 "tests/LinkElementLoadingTest.cpp", |
| 343 "tests/LinkSelectionTest.cpp", |
| 344 "tests/ListenerLeakTest.cpp", |
| 345 "tests/MHTMLTest.cpp", |
| 346 "tests/PrerenderingTest.cpp", |
| 347 "tests/ProgrammaticScrollTest.cpp", |
| 348 "tests/ResizeObserverTest.cpp", |
| 349 "tests/RootScrollerTest.cpp", |
| 350 "tests/RunAllTests.cpp", |
| 351 "tests/ScreenWakeLockTest.cpp", |
| 352 "tests/ScrollingCoordinatorTest.cpp", |
| 353 "tests/SpinLockTest.cpp", |
| 354 "tests/TextFinderTest.cpp", |
| 355 "tests/TopControlsTest.cpp", |
| 356 "tests/TouchActionTest.cpp", |
| 357 "tests/ViewportTest.cpp", |
| 358 "tests/VirtualTimeTest.cpp", |
| 359 "tests/VisualViewportTest.cpp", |
| 360 "tests/WebDocumentSubresourceFilterTest.cpp", |
| 361 "tests/WebDocumentTest.cpp", |
| 362 "tests/WebFrameSerializerTest.cpp", |
| 363 "tests/WebFrameTest.cpp", |
| 364 "tests/WebHelperPluginTest.cpp", |
| 365 "tests/WebImageTest.cpp", |
| 366 "tests/WebInputEventConversionTest.cpp", |
| 367 "tests/WebMeaningfulLayoutsTest.cpp", |
| 368 "tests/WebPluginContainerTest.cpp", |
| 369 "tests/WebScopedWindowFocusAllowedIndicatorTest.cpp", |
| 370 "tests/WebSearchableFormDataTest.cpp", |
| 371 "tests/WebSelectorTest.cpp", |
| 372 "tests/WebURLRequestTest.cpp", |
| 373 "tests/WebURLResponseTest.cpp", |
| 374 "tests/WebUserGestureTokenTest.cpp", |
| 375 "tests/WebViewTest.cpp", |
| 376 "tests/sim/SimCanvas.cpp", |
| 377 "tests/sim/SimCanvas.h", |
| 378 "tests/sim/SimCompositor.cpp", |
| 379 "tests/sim/SimCompositor.h", |
| 380 "tests/sim/SimDisplayItemList.cpp", |
| 381 "tests/sim/SimDisplayItemList.h", |
| 382 "tests/sim/SimNetwork.cpp", |
| 383 "tests/sim/SimNetwork.h", |
| 384 "tests/sim/SimRequest.cpp", |
| 385 "tests/sim/SimRequest.h", |
| 386 "tests/sim/SimTest.cpp", |
| 387 "tests/sim/SimTest.h", |
| 388 "tests/sim/SimWebViewClient.cpp", |
| 389 "tests/sim/SimWebViewClient.h", |
| 390 ] |
| 391 sources += bindings_unittest_files |
| 392 sources += platform_web_unittest_files |
| 393 |
95 deps = [ | 394 deps = [ |
96 ":test_support", | 395 ":test_support", |
97 ":web", | 396 ":web", |
98 "//base", | 397 "//base", |
99 "//base:i18n", | 398 "//base:i18n", |
100 "//base/test:test_support", | 399 "//base/test:test_support", |
101 "//content/test:test_support", | 400 "//content/test:test_support", |
102 "//gpu:test_support", | 401 "//gpu:test_support", |
103 "//mojo/edk/system:system", | 402 "//mojo/edk/system:system", |
104 "//testing/gmock", | 403 "//testing/gmock", |
105 "//testing/gtest", | 404 "//testing/gtest", |
106 "//third_party/WebKit/Source/core", | 405 "//third_party/WebKit/Source/core:unit_tests", |
107 "//third_party/WebKit/Source/modules", | 406 "//third_party/WebKit/Source/modules:unit_tests", |
108 "//third_party/WebKit/Source/platform:test_support", | 407 "//third_party/WebKit/Source/platform:test_support", |
109 "//third_party/WebKit/Source/wtf", | 408 "//third_party/WebKit/Source/wtf", |
110 "//third_party/libwebp", | 409 "//third_party/libwebp", |
111 "//third_party/zlib", | 410 "//third_party/zlib", |
112 "//url", | 411 "//url", |
113 "//v8", | 412 "//v8", |
114 ] | 413 ] |
115 | 414 |
116 data_deps = [ | 415 data_deps = [ |
| 416 ":webkit_unit_tests_data", |
117 "//content/shell:pak", | 417 "//content/shell:pak", |
118 ":webkit_unit_tests_data", | |
119 ] | 418 ] |
120 | 419 |
121 sources = [ | |
122 "tests/RunAllTests.cpp", | |
123 ] | |
124 sources += web_unittest_files | |
125 sources += bindings_unittest_files | |
126 sources += core_unittest_files | |
127 sources += modules_unittest_files | |
128 sources += platform_web_unittest_files | |
129 | |
130 configs += [ | 420 configs += [ |
131 "//third_party/WebKit/Source:config", | 421 "//third_party/WebKit/Source:config", |
132 "//third_party/WebKit/Source:inside_blink", | 422 "//third_party/WebKit/Source:inside_blink", |
133 ] | 423 ] |
134 | 424 |
135 if (is_android) { | 425 if (is_android) { |
136 deps += [ | 426 deps += [ |
137 "//base:base_java", | 427 "//base:base_java", |
138 "//content/public/android:content_java", | 428 "//content/public/android:content_java", |
139 "//content/shell/android:content_shell_assets", | 429 "//content/shell/android:content_shell_assets", |
140 "//net/android:net_java", | 430 "//net/android:net_java", |
141 ] | 431 ] |
142 } | 432 } |
143 } | 433 } |
OLD | NEW |