Commit 61a6b110 authored by brettw's avatar brettw Committed by Commit bot

Remove .gypi sharing for Blink core + some tests

Makes new "unit_tests" targets for core and modules, reference these from webkit_unit_tests and delete the associated .gypi and .gni machinery.

Move all web file lists from .gypis to the GN build and remove web.gypi

Review-Url: https://codereview.chromium.org/2294893002
Cr-Commit-Position: refs/heads/master@{#415403}
parent a966841c
This diff is collapsed.
...@@ -60,4 +60,3 @@ generated_core_testing_dictionary_files = ...@@ -60,4 +60,3 @@ generated_core_testing_dictionary_files =
generated_webcore_testing_idl_files = generated_webcore_testing_idl_files =
get_path_info(_gypi.generated_webcore_testing_idl_files, "abspath") get_path_info(_gypi.generated_webcore_testing_idl_files, "abspath")
webcore_testing_files = get_path_info(_gypi.webcore_testing_files, "abspath") webcore_testing_files = get_path_info(_gypi.webcore_testing_files, "abspath")
core_unittest_files = get_path_info(_gypi.core_unittest_files, "abspath")
This diff is collapsed.
...@@ -93,10 +93,27 @@ target(modules_target_type, "modules") { ...@@ -93,10 +93,27 @@ target(modules_target_type, "modules") {
# GYP version: WebKit/Source/modules/modules.gyp:modules_testing # GYP version: WebKit/Source/modules/modules.gyp:modules_testing
source_set("modules_testing") { source_set("modules_testing") {
sources = modules_testing_files sources = [
sources += [
"$bindings_modules_v8_output_dir/V8InternalsPartial.cpp", "$bindings_modules_v8_output_dir/V8InternalsPartial.cpp",
"$bindings_modules_v8_output_dir/V8InternalsPartial.h", "$bindings_modules_v8_output_dir/V8InternalsPartial.h",
"accessibility/testing/InternalsAccessibility.cpp",
"accessibility/testing/InternalsAccessibility.h",
"navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp",
"navigatorcontentutils/testing/InternalsNavigatorContentUtils.h",
"navigatorcontentutils/testing/NavigatorContentUtilsClientMock.cpp",
"navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h",
"peerconnection/testing/InternalsRTCCertificate.cpp",
"peerconnection/testing/InternalsRTCCertificate.h",
"serviceworkers/testing/InternalsServiceWorker.cpp",
"serviceworkers/testing/InternalsServiceWorker.h",
"speech/testing/InternalsSpeechSynthesis.cpp",
"speech/testing/InternalsSpeechSynthesis.h",
"speech/testing/PlatformSpeechSynthesizerMock.cpp",
"speech/testing/PlatformSpeechSynthesizerMock.h",
"vibration/testing/InternalsVibration.cpp",
"vibration/testing/InternalsVibration.h",
"webaudio/testing/InternalsWebAudio.cpp",
"webaudio/testing/InternalsWebAudio.h",
] ]
configs += [ configs += [
...@@ -136,3 +153,85 @@ group("make_modules_generated") { ...@@ -136,3 +153,85 @@ group("make_modules_generated") {
"//third_party/WebKit/Source/core:core_event_interfaces", "//third_party/WebKit/Source/core:core_event_interfaces",
] ]
} }
source_set("unit_tests") {
testonly = true
sources = [
"accessibility/AXObjectTest.cpp",
"cachestorage/CacheTest.cpp",
"canvas/HTMLCanvasElementModuleTest.cpp",
"canvas2d/CanvasRenderingContext2DAPITest.cpp",
"canvas2d/CanvasRenderingContext2DTest.cpp",
"canvas2d/CanvasRenderingContext2DUsageTrackingTest.cpp",
"compositorworker/AnimationWorkletThreadTest.cpp",
"compositorworker/CompositorWorkerThreadTest.cpp",
"credentialmanager/PasswordCredentialTest.cpp",
"csspaint/PaintRenderingContext2DTest.cpp",
"csspaint/PaintWorkletTest.cpp",
"fetch/BodyStreamBufferTest.cpp",
"fetch/BytesConsumerForDataConsumerHandleTest.cpp",
"fetch/CompositeDataConsumerHandleTest.cpp",
"fetch/DataConsumerHandleTestUtil.cpp",
"fetch/DataConsumerHandleTestUtil.h",
"fetch/DataConsumerHandleUtilTest.cpp",
"fetch/DataConsumerTeeTest.cpp",
"fetch/FetchBlobDataConsumerHandleTest.cpp",
"fetch/FetchDataLoaderTest.cpp",
"fetch/FetchFormDataConsumerHandleTest.cpp",
"fetch/FetchResponseDataTest.cpp",
"fetch/ReadableStreamDataConsumerHandleTest.cpp",
"fetch/RequestTest.cpp",
"fetch/ResponseTest.cpp",
"filesystem/DOMFileSystemBaseTest.cpp",
"indexeddb/IDBKeyPathTest.cpp",
"indexeddb/IDBRequestTest.cpp",
"indexeddb/IDBTransactionTest.cpp",
"indexeddb/MockWebIDBDatabase.cpp",
"indexeddb/MockWebIDBDatabase.h",
"mediasession/MediaSessionTest.cpp",
"mediastream/MediaConstraintsTest.cpp",
"notifications/NotificationDataTest.cpp",
"notifications/NotificationResourcesLoaderTest.cpp",
"payments/AbortTest.cpp",
"payments/CompleteTest.cpp",
"payments/OnPaymentResponseTest.cpp",
"payments/PaymentAddressTest.cpp",
"payments/PaymentRequestDetailsTest.cpp",
"payments/PaymentRequestTest.cpp",
"payments/PaymentRequestUpdateEventTest.cpp",
"payments/PaymentResponseTest.cpp",
"payments/PaymentTestHelper.cpp",
"payments/PaymentTestHelper.h",
"payments/PaymentsValidatorsTest.cpp",
"peerconnection/RTCDataChannelTest.cpp",
"presentation/PresentationAvailabilityTest.cpp",
"push_messaging/PushManagerTest.cpp",
"push_messaging/PushMessageDataTest.cpp",
"serviceworkers/ServiceWorkerContainerTest.cpp",
"webaudio/AudioBasicProcessorHandlerTest.cpp",
"webaudio/ConvolverNodeTest.cpp",
"webaudio/DynamicsCompressorNodeTest.cpp",
"webaudio/ScriptProcessorNodeTest.cpp",
"webaudio/StereoPannerNodeTest.cpp",
"webdatabase/QuotaTrackerTest.cpp",
"websockets/DOMWebSocketTest.cpp",
"websockets/DocumentWebSocketChannelTest.cpp",
]
configs += [
"//third_party/WebKit/Source:config",
"//third_party/WebKit/Source:inside_blink",
]
deps = [
":modules",
":modules_testing",
"//skia",
"//testing/gmock",
"//testing/gtest",
"//third_party/WebKit/Source/core",
"//third_party/WebKit/Source/wtf",
"//v8",
]
}
...@@ -55,6 +55,3 @@ modules_files += generated_modules_files + generated_modules_dictionary_files ...@@ -55,6 +55,3 @@ modules_files += generated_modules_files + generated_modules_dictionary_files
# 'partial interface' or target (right side of) 'implements' # 'partial interface' or target (right side of) 'implements'
modules_testing_dependency_idl_files = modules_testing_dependency_idl_files =
get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath") get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath")
modules_testing_files = get_path_info(_gypi.modules_testing_files, "abspath")
modules_unittest_files = get_path_info(_gypi.modules_unittest_files, "abspath")
...@@ -2019,86 +2019,5 @@ ...@@ -2019,86 +2019,5 @@
'vibration/testing/InternalsVibration.idl', 'vibration/testing/InternalsVibration.idl',
'webaudio/testing/InternalsWebAudio.idl', 'webaudio/testing/InternalsWebAudio.idl',
], ],
'modules_testing_files': [
'accessibility/testing/InternalsAccessibility.cpp',
'accessibility/testing/InternalsAccessibility.h',
'navigatorcontentutils/testing/InternalsNavigatorContentUtils.cpp',
'navigatorcontentutils/testing/InternalsNavigatorContentUtils.h',
'navigatorcontentutils/testing/NavigatorContentUtilsClientMock.cpp',
'navigatorcontentutils/testing/NavigatorContentUtilsClientMock.h',
'peerconnection/testing/InternalsRTCCertificate.cpp',
'peerconnection/testing/InternalsRTCCertificate.h',
'serviceworkers/testing/InternalsServiceWorker.cpp',
'serviceworkers/testing/InternalsServiceWorker.h',
'speech/testing/InternalsSpeechSynthesis.cpp',
'speech/testing/InternalsSpeechSynthesis.h',
'speech/testing/PlatformSpeechSynthesizerMock.cpp',
'speech/testing/PlatformSpeechSynthesizerMock.h',
'vibration/testing/InternalsVibration.cpp',
'vibration/testing/InternalsVibration.h',
'webaudio/testing/InternalsWebAudio.h',
'webaudio/testing/InternalsWebAudio.cpp',
],
'modules_unittest_files': [
'accessibility/AXObjectTest.cpp',
'cachestorage/CacheTest.cpp',
'canvas/HTMLCanvasElementModuleTest.cpp',
'canvas2d/CanvasRenderingContext2DAPITest.cpp',
'canvas2d/CanvasRenderingContext2DTest.cpp',
'canvas2d/CanvasRenderingContext2DUsageTrackingTest.cpp',
'compositorworker/AnimationWorkletThreadTest.cpp',
'compositorworker/CompositorWorkerThreadTest.cpp',
'credentialmanager/PasswordCredentialTest.cpp',
'csspaint/PaintRenderingContext2DTest.cpp',
'csspaint/PaintWorkletTest.cpp',
'fetch/BodyStreamBufferTest.cpp',
'fetch/BytesConsumerForDataConsumerHandleTest.cpp',
'fetch/CompositeDataConsumerHandleTest.cpp',
'fetch/DataConsumerHandleTestUtil.cpp',
'fetch/DataConsumerHandleTestUtil.h',
'fetch/DataConsumerHandleUtilTest.cpp',
'fetch/DataConsumerTeeTest.cpp',
'fetch/FetchBlobDataConsumerHandleTest.cpp',
'fetch/FetchDataLoaderTest.cpp',
'fetch/FetchFormDataConsumerHandleTest.cpp',
'fetch/FetchResponseDataTest.cpp',
'fetch/ReadableStreamDataConsumerHandleTest.cpp',
'fetch/RequestTest.cpp',
'fetch/ResponseTest.cpp',
'filesystem/DOMFileSystemBaseTest.cpp',
'indexeddb/IDBKeyPathTest.cpp',
'indexeddb/IDBRequestTest.cpp',
'indexeddb/IDBTransactionTest.cpp',
'indexeddb/MockWebIDBDatabase.cpp',
'indexeddb/MockWebIDBDatabase.h',
'mediasession/MediaSessionTest.cpp',
'mediastream/MediaConstraintsTest.cpp',
'notifications/NotificationDataTest.cpp',
'notifications/NotificationResourcesLoaderTest.cpp',
'payments/AbortTest.cpp',
'payments/CompleteTest.cpp',
'payments/OnPaymentResponseTest.cpp',
'payments/PaymentAddressTest.cpp',
'payments/PaymentRequestDetailsTest.cpp',
'payments/PaymentRequestTest.cpp',
'payments/PaymentRequestUpdateEventTest.cpp',
'payments/PaymentResponseTest.cpp',
'payments/PaymentTestHelper.cpp',
'payments/PaymentTestHelper.h',
'payments/PaymentsValidatorsTest.cpp',
'peerconnection/RTCDataChannelTest.cpp',
'presentation/PresentationAvailabilityTest.cpp',
'push_messaging/PushManagerTest.cpp',
'push_messaging/PushMessageDataTest.cpp',
'serviceworkers/ServiceWorkerContainerTest.cpp',
'webaudio/AudioBasicProcessorHandlerTest.cpp',
'webaudio/ConvolverNodeTest.cpp',
'webaudio/DynamicsCompressorNodeTest.cpp',
'webaudio/ScriptProcessorNodeTest.cpp',
'webaudio/StereoPannerNodeTest.cpp',
'webdatabase/QuotaTrackerTest.cpp',
'websockets/DOMWebSocketTest.cpp',
'websockets/DocumentWebSocketChannelTest.cpp',
],
}, },
} }
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment