Index: third_party/WebKit/Source/web/BUILD.gn |
diff --git a/third_party/WebKit/Source/web/BUILD.gn b/third_party/WebKit/Source/web/BUILD.gn |
index 31b58e7fbbd05d797b68c3ae2c9a1df3b948cbd5..74dcc09e09c3e630519ab603c1190acba2f1fb08 100644 |
--- a/third_party/WebKit/Source/web/BUILD.gn |
+++ b/third_party/WebKit/Source/web/BUILD.gn |
@@ -11,11 +11,6 @@ import("//third_party/WebKit/Source/modules/modules.gni") |
import("//third_party/WebKit/Source/platform/platform.gni") |
visibility = [ "//third_party/WebKit/*" ] |
-web_gypi = exec_script("//build/gypi_to_gn.py", |
- [ rebase_path("web.gypi") ], |
- "scope", |
- [ "web.gypi" ]) |
-web_unittest_files = web_gypi.web_unittest_files |
component("web") { |
output_name = "blink_web" |
@@ -40,7 +35,230 @@ component("web") { |
defines = [ "BLINK_WEB_IMPLEMENTATION=1" ] |
- sources = web_gypi.web_files |
+ sources = [ |
+ "AssertMatchingEnums.cpp", |
+ "AssociatedURLLoader.cpp", |
+ "AssociatedURLLoader.h", |
+ "AudioOutputDeviceClientImpl.cpp", |
+ "AudioOutputDeviceClientImpl.h", |
+ "ChromeClientImpl.cpp", |
+ "ChromeClientImpl.h", |
+ "ColorChooserPopupUIController.cpp", |
+ "ColorChooserPopupUIController.h", |
+ "ColorChooserUIController.cpp", |
+ "ColorChooserUIController.h", |
+ "CompositionUnderlineBuilder.h", |
+ "CompositionUnderlineVectorBuilder.cpp", |
+ "CompositionUnderlineVectorBuilder.h", |
+ "CompositorMutatorImpl.cpp", |
+ "CompositorMutatorImpl.h", |
+ "CompositorProxyClientImpl.cpp", |
+ "CompositorProxyClientImpl.h", |
+ "ContextFeaturesClientImpl.cpp", |
+ "ContextFeaturesClientImpl.h", |
+ "ContextMenuAllowedScope.cpp", |
+ "ContextMenuAllowedScope.h", |
+ "ContextMenuClientImpl.cpp", |
+ "ContextMenuClientImpl.h", |
+ "DatabaseClientImpl.cpp", |
+ "DatabaseClientImpl.h", |
+ "DateTimeChooserImpl.cpp", |
+ "DateTimeChooserImpl.h", |
+ "DedicatedWorkerGlobalScopeProxyProviderImpl.cpp", |
+ "DedicatedWorkerGlobalScopeProxyProviderImpl.h", |
+ "DevToolsEmulator.cpp", |
+ "DevToolsEmulator.h", |
+ "EditorClientImpl.cpp", |
+ "EditorClientImpl.h", |
+ "ExternalDateTimeChooser.cpp", |
+ "ExternalDateTimeChooser.h", |
+ "ExternalPopupMenu.cpp", |
+ "ExternalPopupMenu.h", |
+ "FindInPageCoordinates.cpp", |
+ "FindInPageCoordinates.h", |
+ "FrameLoaderClientImpl.cpp", |
+ "FrameLoaderClientImpl.h", |
+ "FullscreenController.cpp", |
+ "FullscreenController.h", |
+ "IndexedDBClientImpl.cpp", |
+ "IndexedDBClientImpl.h", |
+ "InspectorEmulationAgent.cpp", |
+ "InspectorEmulationAgent.h", |
+ "InspectorOverlay.cpp", |
+ "InspectorOverlay.h", |
+ "InspectorRenderingAgent.cpp", |
+ "InspectorRenderingAgent.h", |
+ "LinkHighlightImpl.cpp", |
+ "LinkHighlightImpl.h", |
+ "LocalFileSystemClient.cpp", |
+ "LocalFileSystemClient.h", |
+ "MediaKeysClientImpl.cpp", |
+ "MediaKeysClientImpl.h", |
+ "NavigatorContentUtilsClientImpl.cpp", |
+ "NavigatorContentUtilsClientImpl.h", |
+ "OpenedFrameTracker.cpp", |
+ "OpenedFrameTracker.h", |
+ "PageOverlay.cpp", |
+ "PageOverlay.h", |
+ "PageWidgetDelegate.cpp", |
+ "PageWidgetDelegate.h", |
+ "PopupMenuImpl.cpp", |
+ "PopupMenuImpl.h", |
+ "PrerendererClientImpl.cpp", |
+ "PrerendererClientImpl.h", |
+ "RemoteFrameClientImpl.cpp", |
+ "RemoteFrameClientImpl.h", |
+ "RemoteFrameOwner.cpp", |
+ "RemoteFrameOwner.h", |
+ "ResizeViewportAnchor.cpp", |
+ "ResizeViewportAnchor.h", |
+ "RotationViewportAnchor.cpp", |
+ "RotationViewportAnchor.h", |
+ "ServiceWorkerGlobalScopeClientImpl.cpp", |
+ "ServiceWorkerGlobalScopeClientImpl.h", |
+ "ServiceWorkerGlobalScopeProxy.cpp", |
+ "ServiceWorkerGlobalScopeProxy.h", |
+ "SharedWorkerRepositoryClientImpl.cpp", |
+ "SharedWorkerRepositoryClientImpl.h", |
+ "SpeechRecognitionClientProxy.cpp", |
+ "SpeechRecognitionClientProxy.h", |
+ "SpellCheckerClientImpl.cpp", |
+ "SpellCheckerClientImpl.h", |
+ "StorageClientImpl.cpp", |
+ "StorageClientImpl.h", |
+ "StorageQuotaClientImpl.cpp", |
+ "StorageQuotaClientImpl.h", |
+ "SuspendableScriptExecutor.cpp", |
+ "SuspendableScriptExecutor.h", |
+ "TextFinder.cpp", |
+ "TextFinder.h", |
+ "UserMediaClientImpl.cpp", |
+ "UserMediaClientImpl.h", |
+ "ValidationMessageClientImpl.cpp", |
+ "ValidationMessageClientImpl.h", |
+ "WebAXObject.cpp", |
+ "WebArrayBuffer.cpp", |
+ "WebArrayBufferConverter.cpp", |
+ "WebArrayBufferView.cpp", |
+ "WebBlob.cpp", |
+ "WebCSSParser.cpp", |
+ "WebCache.cpp", |
+ "WebColorSuggestion.cpp", |
+ "WebCryptoNormalize.cpp", |
+ "WebCustomElement.cpp", |
+ "WebDOMActivityLogger.cpp", |
+ "WebDOMEvent.cpp", |
+ "WebDOMFileSystem.cpp", |
+ "WebDOMMediaStreamTrack.cpp", |
+ "WebDOMMessageEvent.cpp", |
+ "WebDataSourceImpl.cpp", |
+ "WebDataSourceImpl.h", |
+ "WebDatabase.cpp", |
+ "WebDateTimeSuggestion.cpp", |
+ "WebDevToolsAgentImpl.cpp", |
+ "WebDevToolsAgentImpl.h", |
+ "WebDevToolsFrontendImpl.cpp", |
+ "WebDevToolsFrontendImpl.h", |
+ "WebDocument.cpp", |
+ "WebElement.cpp", |
+ "WebElementCollection.cpp", |
+ "WebEmbeddedWorkerImpl.cpp", |
+ "WebEmbeddedWorkerImpl.h", |
+ "WebEntities.cpp", |
+ "WebEntities.h", |
+ "WebExport.h", |
+ "WebFileChooserCompletionImpl.cpp", |
+ "WebFileChooserCompletionImpl.h", |
+ "WebFormControlElement.cpp", |
+ "WebFormElement.cpp", |
+ "WebFrame.cpp", |
+ "WebFrameContentDumper.cpp", |
+ "WebFrameImplBase.cpp", |
+ "WebFrameImplBase.h", |
+ "WebFrameSerializer.cpp", |
+ "WebFrameSerializerImpl.cpp", |
+ "WebFrameSerializerImpl.h", |
+ "WebFrameWidgetBase.h", |
+ "WebFrameWidgetImpl.cpp", |
+ "WebFrameWidgetImpl.h", |
+ "WebHeap.cpp", |
+ "WebHelperPluginImpl.cpp", |
+ "WebHelperPluginImpl.h", |
+ "WebHistoryItem.cpp", |
+ "WebHitTestResult.cpp", |
+ "WebIDBKey.cpp", |
+ "WebIDBKeyRange.cpp", |
+ "WebImageCache.cpp", |
+ "WebImageDecoder.cpp", |
+ "WebInputElement.cpp", |
+ "WebInputEventConversion.cpp", |
+ "WebInputEventConversion.h", |
+ "WebKit.cpp", |
+ "WebLabelElement.cpp", |
+ "WebLeakDetector.cpp", |
+ "WebLocalFrameImpl.cpp", |
+ "WebLocalFrameImpl.h", |
+ "WebMediaDeviceChangeObserver.cpp", |
+ "WebMediaDevicesRequest.cpp", |
+ "WebMediaStreamRegistry.cpp", |
+ "WebMetaElement.cpp", |
+ "WebNetworkStateNotifier.cpp", |
+ "WebNode.cpp", |
+ "WebOptionElement.cpp", |
+ "WebPageImportanceSignals.cpp", |
+ "WebPagePopupImpl.cpp", |
+ "WebPagePopupImpl.h", |
+ "WebPepperSocket.cpp", |
+ "WebPepperSocketChannelClientProxy.h", |
+ "WebPepperSocketImpl.cpp", |
+ "WebPepperSocketImpl.h", |
+ "WebPerformance.cpp", |
+ "WebPluginContainerImpl.cpp", |
+ "WebPluginContainerImpl.h", |
+ "WebPluginDocument.cpp", |
+ "WebPluginScriptForbiddenScope.cpp", |
+ "WebRange.cpp", |
+ "WebRemoteFrameImpl.cpp", |
+ "WebRemoteFrameImpl.h", |
+ "WebRenderTheme.cpp", |
+ "WebRuntimeFeatures.cpp", |
+ "WebScopedUserGesture.cpp", |
+ "WebScopedWindowFocusAllowedIndicator.cpp", |
+ "WebScriptController.cpp", |
+ "WebScriptSource.cpp", |
+ "WebSearchableFormData.cpp", |
+ "WebSecurityPolicy.cpp", |
+ "WebSelectElement.cpp", |
+ "WebSelection.cpp", |
+ "WebSelector.cpp", |
+ "WebSerializedScriptValue.cpp", |
+ "WebSettingsImpl.cpp", |
+ "WebSettingsImpl.h", |
+ "WebSharedWorkerImpl.cpp", |
+ "WebSharedWorkerImpl.h", |
+ "WebSpeechGrammar.cpp", |
+ "WebSpeechRecognitionHandle.cpp", |
+ "WebSpeechRecognitionResult.cpp", |
+ "WebStorageEventDispatcherImpl.cpp", |
+ "WebSurroundingText.cpp", |
+ "WebTextCheckingCompletionImpl.cpp", |
+ "WebTextCheckingCompletionImpl.h", |
+ "WebTextCheckingResult.cpp", |
+ "WebTextInputInfo.cpp", |
+ "WebUserGestureIndicator.cpp", |
+ "WebUserGestureToken.cpp", |
+ "WebUserMediaRequest.cpp", |
+ "WebViewFrameWidget.cpp", |
+ "WebViewFrameWidget.h", |
+ "WebViewImpl.cpp", |
+ "WebViewImpl.h", |
+ "WorkerContentSettingsClient.cpp", |
+ "WorkerContentSettingsClient.h", |
+ "linux/WebFontRendering.cpp", |
+ "mac/WebScrollbarTheme.mm", |
+ "mac/WebSubstringUtil.mm", |
+ "win/WebFontRendering.cpp", |
+ ] |
if (is_android) { |
set_sources_assignment_filter([]) |
@@ -92,6 +310,87 @@ test("webkit_unit_tests") { |
visibility = [] # Allow re-assignment of list. |
visibility = [ "*" ] |
+ sources = [ |
+ "AssociatedURLLoaderTest.cpp", |
+ "ExternalPopupMenuTest.cpp", |
+ "LinkHighlightImplTest.cpp", |
+ "PageOverlayTest.cpp", |
+ "WebDragDataTest.cpp", |
+ "WebElementTest.cpp", |
+ "WebEmbeddedWorkerImplTest.cpp", |
+ "WebNodeTest.cpp", |
+ "WebViewImplPaintArtifactCompositorTest.cpp", |
+ |
+ # FIXME: Move the tests from web/tests/ to appropriate places. |
+ # crbug.com/353585 |
+ "tests/ActivityLoggerTest.cpp", |
+ "tests/ChromeClientImplTest.cpp", |
+ "tests/CompositorWorkerTest.cpp", |
+ "tests/DocumentLoaderTest.cpp", |
+ "tests/DocumentLoadingRenderingTest.cpp", |
+ "tests/FakeWebPlugin.cpp", |
+ "tests/FakeWebPlugin.h", |
+ "tests/FrameLoaderClientImplTest.cpp", |
+ "tests/FrameSerializerTest.cpp", |
+ "tests/FrameTestHelpers.cpp", |
+ "tests/FrameTestHelpers.h", |
+ "tests/FrameThrottlingTest.cpp", |
+ "tests/ImeOnFocusTest.cpp", |
+ "tests/IntersectionObserverTest.cpp", |
+ "tests/KeyboardTest.cpp", |
+ "tests/LayoutGeometryMapTest.cpp", |
+ "tests/LinkElementLoadingTest.cpp", |
+ "tests/LinkSelectionTest.cpp", |
+ "tests/ListenerLeakTest.cpp", |
+ "tests/MHTMLTest.cpp", |
+ "tests/PrerenderingTest.cpp", |
+ "tests/ProgrammaticScrollTest.cpp", |
+ "tests/ResizeObserverTest.cpp", |
+ "tests/RootScrollerTest.cpp", |
+ "tests/RunAllTests.cpp", |
+ "tests/ScreenWakeLockTest.cpp", |
+ "tests/ScrollingCoordinatorTest.cpp", |
+ "tests/SpinLockTest.cpp", |
+ "tests/TextFinderTest.cpp", |
+ "tests/TopControlsTest.cpp", |
+ "tests/TouchActionTest.cpp", |
+ "tests/ViewportTest.cpp", |
+ "tests/VirtualTimeTest.cpp", |
+ "tests/VisualViewportTest.cpp", |
+ "tests/WebDocumentSubresourceFilterTest.cpp", |
+ "tests/WebDocumentTest.cpp", |
+ "tests/WebFrameSerializerTest.cpp", |
+ "tests/WebFrameTest.cpp", |
+ "tests/WebHelperPluginTest.cpp", |
+ "tests/WebImageTest.cpp", |
+ "tests/WebInputEventConversionTest.cpp", |
+ "tests/WebMeaningfulLayoutsTest.cpp", |
+ "tests/WebPluginContainerTest.cpp", |
+ "tests/WebScopedWindowFocusAllowedIndicatorTest.cpp", |
+ "tests/WebSearchableFormDataTest.cpp", |
+ "tests/WebSelectorTest.cpp", |
+ "tests/WebURLRequestTest.cpp", |
+ "tests/WebURLResponseTest.cpp", |
+ "tests/WebUserGestureTokenTest.cpp", |
+ "tests/WebViewTest.cpp", |
+ "tests/sim/SimCanvas.cpp", |
+ "tests/sim/SimCanvas.h", |
+ "tests/sim/SimCompositor.cpp", |
+ "tests/sim/SimCompositor.h", |
+ "tests/sim/SimDisplayItemList.cpp", |
+ "tests/sim/SimDisplayItemList.h", |
+ "tests/sim/SimNetwork.cpp", |
+ "tests/sim/SimNetwork.h", |
+ "tests/sim/SimRequest.cpp", |
+ "tests/sim/SimRequest.h", |
+ "tests/sim/SimTest.cpp", |
+ "tests/sim/SimTest.h", |
+ "tests/sim/SimWebViewClient.cpp", |
+ "tests/sim/SimWebViewClient.h", |
+ ] |
+ sources += bindings_unittest_files |
+ sources += platform_web_unittest_files |
+ |
deps = [ |
":test_support", |
":web", |
@@ -103,8 +402,8 @@ test("webkit_unit_tests") { |
"//mojo/edk/system:system", |
"//testing/gmock", |
"//testing/gtest", |
- "//third_party/WebKit/Source/core", |
- "//third_party/WebKit/Source/modules", |
+ "//third_party/WebKit/Source/core:unit_tests", |
+ "//third_party/WebKit/Source/modules:unit_tests", |
"//third_party/WebKit/Source/platform:test_support", |
"//third_party/WebKit/Source/wtf", |
"//third_party/libwebp", |
@@ -114,19 +413,10 @@ test("webkit_unit_tests") { |
] |
data_deps = [ |
- "//content/shell:pak", |
":webkit_unit_tests_data", |
+ "//content/shell:pak", |
] |
- sources = [ |
- "tests/RunAllTests.cpp", |
- ] |
- sources += web_unittest_files |
- sources += bindings_unittest_files |
- sources += core_unittest_files |
- sources += modules_unittest_files |
- sources += platform_web_unittest_files |
- |
configs += [ |
"//third_party/WebKit/Source:config", |
"//third_party/WebKit/Source:inside_blink", |