Index: third_party/WebKit/Source/core/BUILD.gn |
diff --git a/third_party/WebKit/Source/core/BUILD.gn b/third_party/WebKit/Source/core/BUILD.gn |
index 67776de841343644551dd0ca969fac359c42cf87..a5ba3bde4eab644e2ee45a9a1785fbecb312217b 100644 |
--- a/third_party/WebKit/Source/core/BUILD.gn |
+++ b/third_party/WebKit/Source/core/BUILD.gn |
@@ -1128,3 +1128,299 @@ fuzzer_test("text_resource_decoder_fuzzer") { |
"../platform:test_support", |
] |
} |
+ |
+source_set("unit_tests") { |
+ testonly = true |
+ sources = [ |
+ "animation/AnimationClockTest.cpp", |
+ "animation/AnimationEffectReadOnlyTest.cpp", |
+ "animation/AnimationInputHelpersTest.cpp", |
+ "animation/AnimationStackTest.cpp", |
+ "animation/AnimationTest.cpp", |
+ "animation/AnimationTestHelper.cpp", |
+ "animation/AnimationTestHelper.h", |
+ "animation/AnimationTimelineTest.cpp", |
+ "animation/CompositorAnimationsTest.cpp", |
+ "animation/DocumentTimelineTest.cpp", |
+ "animation/EffectInputTest.cpp", |
+ "animation/InterpolableValueTest.cpp", |
+ "animation/InterpolationEffectTest.cpp", |
+ "animation/KeyframeEffectModelTest.cpp", |
+ "animation/KeyframeEffectTest.cpp", |
+ "animation/PropertyHandleTest.cpp", |
+ "animation/TimingCalculationsTest.cpp", |
+ "animation/TimingInputTest.cpp", |
+ "animation/animatable/AnimatableColorTest.cpp", |
+ "animation/animatable/AnimatableDoubleAndBoolTest.cpp", |
+ "animation/animatable/AnimatableDoubleTest.cpp", |
+ "animation/animatable/AnimatableLengthTest.cpp", |
+ "animation/animatable/AnimatableNeutralTest.cpp", |
+ "animation/animatable/AnimatableStrokeDasharrayListTest.cpp", |
+ "animation/animatable/AnimatableUnknownTest.cpp", |
+ "animation/animatable/AnimatableValueTestHelper.cpp", |
+ "animation/animatable/AnimatableValueTestHelper.h", |
+ "animation/animatable/AnimatableValueTestHelperTest.cpp", |
+ "clipboard/DataObjectTest.cpp", |
+ "css/AffectedByFocusTest.cpp", |
+ "css/CSSCalculationValueTest.cpp", |
+ "css/CSSFontFaceSourceTest.cpp", |
+ "css/CSSPageRuleTest.cpp", |
+ "css/CSSSelectorTest.cpp", |
+ "css/CSSStyleDeclarationTest.cpp", |
+ "css/CSSStyleSheetResourceTest.cpp", |
+ "css/CSSTestHelper.cpp", |
+ "css/CSSTestHelper.h", |
+ "css/CSSValueTestHelper.h", |
+ "css/DragUpdateTest.cpp", |
+ "css/MediaQueryEvaluatorTest.cpp", |
+ "css/MediaQueryListTest.cpp", |
+ "css/MediaQueryMatcherTest.cpp", |
+ "css/MediaQuerySetTest.cpp", |
+ "css/MediaValuesTest.cpp", |
+ "css/RuleFeatureSetTest.cpp", |
+ "css/RuleSetTest.cpp", |
+ "css/StyleSheetContentsTest.cpp", |
+ "css/cssom/CSSResourceValueTest.cpp", |
+ "css/cssom/CSSStyleImageValueTest.cpp", |
+ "css/cssom/CSSTokenStreamValueTest.cpp", |
+ "css/cssom/CSSURLImageValueTest.cpp", |
+ "css/cssom/CSSVariableReferenceValueTest.cpp", |
+ "css/cssom/FilteredComputedStylePropertyMapTest.cpp", |
+ "css/invalidation/InvalidationSetTest.cpp", |
+ "css/parser/CSSParserFastPathsTest.cpp", |
+ "css/parser/CSSParserTokenTest.cpp", |
+ "css/parser/CSSPropertyParserTest.cpp", |
+ "css/parser/CSSSelectorParserTest.cpp", |
+ "css/parser/CSSTokenizerTest.cpp", |
+ "css/parser/MediaConditionTest.cpp", |
+ "css/parser/SizesAttributeParserTest.cpp", |
+ "css/parser/SizesCalcParserTest.cpp", |
+ "css/resolver/FontBuilderTest.cpp", |
+ "css/resolver/MatchResultTest.cpp", |
+ "css/resolver/SharedStyleFinderTest.cpp", |
+ "dom/ActiveDOMObjectTest.cpp", |
+ "dom/AttrTest.cpp", |
+ "dom/CSSSelectorWatchTest.cpp", |
+ "dom/DOMImplementationTest.cpp", |
+ "dom/DocumentStatisticsCollectorTest.cpp", |
+ "dom/DocumentTest.cpp", |
+ "dom/ElementTest.cpp", |
+ "dom/ExecutionContextTaskTest.cpp", |
+ "dom/MainThreadTaskRunnerTest.cpp", |
+ "dom/NodeTest.cpp", |
+ "dom/NthIndexCacheTest.cpp", |
+ "dom/RangeTest.cpp", |
+ "dom/ScriptRunnerTest.cpp", |
+ "dom/SelectorQueryTest.cpp", |
+ "dom/StaticRangeTest.cpp", |
+ "dom/StyleElementTest.cpp", |
+ "dom/StyleEngineTest.cpp", |
+ "dom/TextTest.cpp", |
+ "dom/TreeScopeStyleSheetCollectionTest.cpp", |
+ "dom/TreeScopeTest.cpp", |
+ "dom/URLSearchParamsTest.cpp", |
+ "dom/custom/CustomElementDescriptorTest.cpp", |
+ "dom/custom/CustomElementReactionQueueTest.cpp", |
+ "dom/custom/CustomElementReactionStackTest.cpp", |
+ "dom/custom/CustomElementReactionTestHelpers.h", |
+ "dom/custom/CustomElementRegistryTest.cpp", |
+ "dom/custom/CustomElementTest.cpp", |
+ "dom/custom/CustomElementTestHelpers.h", |
+ "dom/custom/CustomElementUpgradeSorterTest.cpp", |
+ "dom/shadow/FlatTreeTraversalTest.cpp", |
+ "editing/EditingCommandTest.cpp", |
+ "editing/EditingStrategyTest.cpp", |
+ "editing/EditingStyleTest.cpp", |
+ "editing/EditingTestBase.cpp", |
+ "editing/EditingTestBase.h", |
+ "editing/EditingUtilitiesTest.cpp", |
+ "editing/EditorTest.cpp", |
+ "editing/EphemeralRangeTest.cpp", |
+ "editing/FrameSelectionTest.cpp", |
+ "editing/GranularityStrategyTest.cpp", |
+ "editing/InputMethodControllerTest.cpp", |
+ "editing/PositionTest.cpp", |
+ "editing/RelocatablePositionTest.cpp", |
+ "editing/SelectionAdjusterTest.cpp", |
+ "editing/SurroundingTextTest.cpp", |
+ "editing/VisiblePositionTest.cpp", |
+ "editing/VisibleSelectionTest.cpp", |
+ "editing/VisibleUnitsTest.cpp", |
+ "editing/commands/ReplaceSelectionCommandTest.cpp", |
+ "editing/iterators/BackwardsTextBufferTest.cpp", |
+ "editing/iterators/CharacterIteratorTest.cpp", |
+ "editing/iterators/ForwardsTextBufferTest.cpp", |
+ "editing/iterators/SearchBufferTest.cpp", |
+ "editing/iterators/SimplifiedBackwardsTextIteratorTest.cpp", |
+ "editing/iterators/TextIteratorTest.cpp", |
+ "editing/markers/DocumentMarkerControllerTest.cpp", |
+ "editing/serializers/StyledMarkupSerializerTest.cpp", |
+ "editing/spellcheck/SpellCheckerTest.cpp", |
+ "editing/state_machines/BackspaceStateMachineTest.cpp", |
+ "editing/state_machines/BackwardGraphemeBoundaryStateMachineTest.cpp", |
+ "editing/state_machines/ForwardGraphemeBoundaryStateMachineTest.cpp", |
+ "editing/state_machines/StateMachineTestUtil.cpp", |
+ "editing/state_machines/StateMachineUtilTest.cpp", |
+ "events/EventPathTest.cpp", |
+ "events/EventTargetTest.cpp", |
+ "events/PointerEventFactoryTest.cpp", |
+ "fetch/CachingCorrectnessTest.cpp", |
+ "fetch/ClientHintsPreferencesTest.cpp", |
+ "fetch/CrossOriginAccessControlTest.cpp", |
+ "fetch/FetchUtilsTest.cpp", |
+ "fetch/ImageResourceTest.cpp", |
+ "fetch/MemoryCacheTest.cpp", |
+ "fetch/MockResourceClients.cpp", |
+ "fetch/MultipartImageResourceParserTest.cpp", |
+ "fetch/RawResourceTest.cpp", |
+ "fetch/ResourceFetcherTest.cpp", |
+ "fetch/ResourceLoaderOptionsTest.cpp", |
+ "fetch/ResourceTest.cpp", |
+ "fileapi/FileListTest.cpp", |
+ "fileapi/FileTest.cpp", |
+ "frame/FrameViewTest.cpp", |
+ "frame/HistoryTest.cpp", |
+ "frame/ImageBitmapTest.cpp", |
+ "frame/LocalFrameTest.cpp", |
+ "frame/OriginsUsingFeaturesTest.cpp", |
+ "frame/RootFrameViewportTest.cpp", |
+ "frame/SubresourceIntegrityTest.cpp", |
+ "frame/UseCounterTest.cpp", |
+ "frame/csp/CSPDirectiveListTest.cpp", |
+ "frame/csp/CSPSourceListTest.cpp", |
+ "frame/csp/CSPSourceTest.cpp", |
+ "frame/csp/ContentSecurityPolicyTest.cpp", |
+ "html/AutoplayExperimentTest.cpp", |
+ "html/FormDataTest.cpp", |
+ "html/HTMLDimensionTest.cpp", |
+ "html/HTMLFormControlElementTest.cpp", |
+ "html/HTMLIFrameElementPermissionsTest.cpp", |
+ "html/HTMLIFrameElementTest.cpp", |
+ "html/HTMLImageElementTest.cpp", |
+ "html/HTMLInputElementTest.cpp", |
+ "html/HTMLLinkElementSizesAttributeTest.cpp", |
+ "html/HTMLOutputElementTest.cpp", |
+ "html/HTMLSelectElementTest.cpp", |
+ "html/HTMLTableRowElementTest.cpp", |
+ "html/HTMLTextAreaElementTest.cpp", |
+ "html/HTMLTextFormControlElementTest.cpp", |
+ "html/HTMLVideoElementTest.cpp", |
+ "html/LinkRelAttributeTest.cpp", |
+ "html/TimeRangesTest.cpp", |
+ "html/canvas/CanvasAsyncBlobCreatorTest.cpp", |
+ "html/canvas/CanvasFontCacheTest.cpp", |
+ "html/forms/EmailInputTypeTest.cpp", |
+ "html/forms/FileInputTypeTest.cpp", |
+ "html/forms/OptionListTest.cpp", |
+ "html/forms/StepRangeTest.cpp", |
+ "html/parser/AtomicHTMLTokenTest.cpp", |
+ "html/parser/CSSPreloadScannerTest.cpp", |
+ "html/parser/CompactHTMLTokenTest.cpp", |
+ "html/parser/HTMLDocumentParserTest.cpp", |
+ "html/parser/HTMLEntityParserTest.cpp", |
+ "html/parser/HTMLParserIdiomsTest.cpp", |
+ "html/parser/HTMLParserThreadTest.cpp", |
+ "html/parser/HTMLPreloadScannerTest.cpp", |
+ "html/parser/HTMLResourcePreloaderTest.cpp", |
+ "html/parser/HTMLSrcsetParserTest.cpp", |
+ "html/parser/HTMLTokenizerTest.cpp", |
+ "html/parser/HTMLTreeBuilderSimulatorTest.cpp", |
+ "html/parser/TextResourceDecoderTest.cpp", |
+ "html/shadow/MediaControlsTest.cpp", |
+ "html/track/TextTrackListTest.cpp", |
+ "html/track/vtt/BufferedLineReaderTest.cpp", |
+ "html/track/vtt/VTTScannerTest.cpp", |
+ "input/EventHandlerTest.cpp", |
+ "inspector/ProtocolParserTest.cpp", |
+ "layout/ImageQualityControllerTest.cpp", |
+ "layout/InlineTextBoxTest.cpp", |
+ "layout/LayoutBlockTest.cpp", |
+ "layout/LayoutBoxModelObjectTest.cpp", |
+ "layout/LayoutBoxTest.cpp", |
+ "layout/LayoutInlineTest.cpp", |
+ "layout/LayoutMultiColumnFlowThreadTest.cpp", |
+ "layout/LayoutObjectTest.cpp", |
+ "layout/LayoutPartTest.cpp", |
+ "layout/LayoutProgressTest.cpp", |
+ "layout/LayoutTableCellTest.cpp", |
+ "layout/LayoutTableRowTest.cpp", |
+ "layout/LayoutTableSectionTest.cpp", |
+ "layout/LayoutTestHelper.cpp", |
+ "layout/LayoutTestHelper.h", |
+ "layout/LayoutThemeTest.cpp", |
+ "layout/MapCoordinatesTest.cpp", |
+ "layout/MultiColumnFragmentainerGroupTest.cpp", |
+ "layout/OverflowModelTest.cpp", |
+ "layout/PaginationTest.cpp", |
+ "layout/PaintContainmentTest.cpp", |
+ "layout/ScrollAnchorTest.cpp", |
+ "layout/TextAutosizerTest.cpp", |
+ "layout/VisualRectMappingTest.cpp", |
+ "layout/compositing/CompositedLayerMappingTest.cpp", |
+ "layout/ng/ng_block_layout_algorithm_test.cc", |
+ "layout/ng/ng_constraint_space_test.cc", |
+ "layout/ng/ng_length_utils_test.cc", |
+ "layout/shapes/BoxShapeTest.cpp", |
+ "layout/svg/LayoutSVGRootTest.cpp", |
+ "loader/DocumentLoadTimingTest.cpp", |
+ "loader/FrameFetchContextTest.cpp", |
+ "loader/LinkLoaderTest.cpp", |
+ "loader/MixedContentCheckerTest.cpp", |
+ "loader/TextResourceDecoderBuilderTest.cpp", |
+ "loader/ThreadableLoaderTest.cpp", |
+ "origin_trials/OriginTrialContextTest.cpp", |
+ "page/ChromeClientTest.cpp", |
+ "page/ContextMenuControllerTest.cpp", |
+ "page/EventSourceParserTest.cpp", |
+ "page/FocusControllerTest.cpp", |
+ "page/NetworkStateNotifierTest.cpp", |
+ "page/PagePopupClientTest.cpp", |
+ "page/PrintContextTest.cpp", |
+ "page/WindowFeaturesTest.cpp", |
+ "page/scrolling/ScrollStateTest.cpp", |
+ "page/scrolling/SnapCoordinatorTest.cpp", |
+ "paint/FirstMeaningfulPaintDetectorTest.cpp", |
+ "paint/HTMLCanvasPainterTest.cpp", |
+ "paint/LayerClipRecorderTest.cpp", |
+ "paint/LayoutObjectDrawingRecorderTest.cpp", |
+ "paint/NinePieceImageGridTest.cpp", |
+ "paint/ObjectPaintInvalidatorTest.cpp", |
+ "paint/PaintControllerPaintTest.cpp", |
+ "paint/PaintControllerPaintTest.h", |
+ "paint/PaintInfoTest.cpp", |
+ "paint/PaintLayerPainterTest.cpp", |
+ "paint/PaintLayerScrollableAreaTest.cpp", |
+ "paint/PaintPropertyTreeBuilderTest.cpp", |
+ "paint/SVGInlineTextBoxPainterTest.cpp", |
+ "paint/StubChromeClientForSPv2.h", |
+ "paint/TableCellPainterTest.cpp", |
+ "paint/TextPainterTest.cpp", |
+ "paint/VideoPainterTest.cpp", |
+ "streams/ReadableStreamOperationsTest.cpp", |
+ "style/ComputedStyleTest.cpp", |
+ "style/OutlineValueTest.cpp", |
+ "style/SVGComputedStyleTest.cpp", |
+ "svg/SVGPathParserTest.cpp", |
+ "svg/UnsafeSVGAttributeSanitizationTest.cpp", |
+ "svg/graphics/SVGImageTest.cpp", |
+ "testing/PrivateScriptTestTest.cpp", |
+ "timing/MemoryInfoTest.cpp", |
+ "timing/PerformanceBaseTest.cpp", |
+ "timing/PerformanceObserverTest.cpp", |
+ "workers/DedicatedWorkerTest.cpp", |
+ "workers/WorkerThreadTest.cpp", |
+ "workers/WorkerThreadTestHelper.h", |
+ "xml/parser/SharedBufferReaderTest.cpp", |
+ ] |
+ |
+ configs += [ |
+ "//third_party/WebKit/Source:config", |
+ "//third_party/WebKit/Source:inside_blink", |
+ ] |
+ |
+ deps = [ |
+ ":core", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ ] |
+} |