| Index: third_party/WebKit/Source/wtf/BUILD.gn
|
| diff --git a/third_party/WebKit/Source/wtf/BUILD.gn b/third_party/WebKit/Source/wtf/BUILD.gn
|
| index f8621d67874f283d4bb132da191e00152b1cda4d..fa2463bac4e696d9a7992ae94b7db1f8bdded966 100644
|
| --- a/third_party/WebKit/Source/wtf/BUILD.gn
|
| +++ b/third_party/WebKit/Source/wtf/BUILD.gn
|
| @@ -38,11 +38,12 @@ component("wtf") {
|
| "CryptographicallyRandomNumber.h",
|
| "CurrentTime.h",
|
| "DataLog.h",
|
| + "DateMath.cpp",
|
| "DateMath.h",
|
| "Deque.h",
|
| "DoublyLinkedList.h",
|
| - "Dummy.cpp",
|
| "DynamicAnnotations.h",
|
| + "FilePrintStream.cpp",
|
| "FilePrintStream.h",
|
| "Forward.h",
|
| "Functional.h",
|
| @@ -56,6 +57,7 @@ component("wtf") {
|
| "HashTableDeletedValueType.h",
|
| "HashTraits.h",
|
| "HexNumber.h",
|
| + "InstanceCounter.cpp",
|
| "InstanceCounter.h",
|
| "LeakAnnotations.h",
|
| "ListHashSet.h",
|
| @@ -66,6 +68,7 @@ component("wtf") {
|
| "NotFound.h",
|
| "Optional.h",
|
| "PassRefPtr.h",
|
| + "PrintStream.cpp",
|
| "PrintStream.h",
|
| "PtrUtil.h",
|
| "RefCounted.h",
|
| @@ -74,7 +77,9 @@ component("wtf") {
|
| "RetainPtr.h",
|
| "SaturatedArithmetic.h",
|
| "SizeAssertions.h",
|
| + "SizeLimits.cpp",
|
| "SpinLock.h",
|
| + "StackUtil.cpp",
|
| "StackUtil.h",
|
| "StaticConstructors.h",
|
| "StdLibExtras.h",
|
| @@ -85,15 +90,20 @@ component("wtf") {
|
| "ThreadRestrictionVerifier.h",
|
| "ThreadSafeRefCounted.h",
|
| "ThreadSpecific.h",
|
| + "ThreadSpecificWin.cpp",
|
| "Threading.h",
|
| "ThreadingPrimitives.h",
|
| + "ThreadingPthreads.cpp",
|
| + "ThreadingWin.cpp",
|
| "Time.h",
|
| "TreeNode.h",
|
| "TypeTraits.h",
|
| "Vector.h",
|
| "VectorTraits.h",
|
| + "WTF.cpp",
|
| "WTF.h",
|
| "WTFExport.h",
|
| + "WTFThreadData.cpp",
|
| "WTFThreadData.h",
|
| "WeakPtr.h",
|
| "allocator/PartitionAllocator.h",
|
| @@ -185,6 +195,18 @@ component("wtf") {
|
| "//third_party/icu",
|
| ]
|
|
|
| + if (is_win) {
|
| + sources -= [ "ThreadingPthreads.cpp" ]
|
| +
|
| + cflags = [ "/wd4068" ] # Unknown pragma.
|
| + } else {
|
| + # Non-Windows.
|
| + sources -= [
|
| + "ThreadSpecificWin.cpp",
|
| + "ThreadingWin.cpp",
|
| + ]
|
| + }
|
| +
|
| if (is_android) {
|
| libs = [ "log" ]
|
| }
|
| @@ -204,3 +226,68 @@ component("wtf") {
|
| configs += [ "//build/config/compiler:no_symbols" ]
|
| }
|
| }
|
| +
|
| +test("wtf_unittests") {
|
| + visibility = [] # Allow re-assignment of list.
|
| + visibility = [ "*" ]
|
| +
|
| + sources = [
|
| + "ASCIICTypeTest.cpp",
|
| + "AssertionsTest.cpp",
|
| + "DequeTest.cpp",
|
| + "FunctionalTest.cpp",
|
| + "HashMapTest.cpp",
|
| + "HashSetTest.cpp",
|
| + "ListHashSetTest.cpp",
|
| + "MathExtrasTest.cpp",
|
| + "OptionalTest.cpp",
|
| + "PassRefPtrTest.cpp",
|
| + "RefPtrTest.cpp",
|
| + "StringExtrasTest.cpp",
|
| + "StringHasherTest.cpp",
|
| + "TimeTest.cpp",
|
| + "TreeNodeTest.cpp",
|
| + "TypeTraitsTest.cpp",
|
| + "VectorTest.cpp",
|
| + "dtoa_test.cpp",
|
| + "testing/RunAllTests.cpp",
|
| + "text/AtomicStringTest.cpp",
|
| + "text/CStringTest.cpp",
|
| + "text/IntegerToStringConversionTest.cpp",
|
| + "text/StringBufferTest.cpp",
|
| + "text/StringBuilderTest.cpp",
|
| + "text/StringImplTest.cpp",
|
| + "text/StringOperatorsTest.cpp",
|
| + "text/StringToNumberTest.cpp",
|
| + "text/StringViewTest.cpp",
|
| + "text/TextCodecICUTest.cpp",
|
| + "text/TextCodecLatin1Test.cpp",
|
| + "text/TextCodecReplacementTest.cpp",
|
| + "text/TextCodecTest.cpp",
|
| + "text/TextCodecUTF8Test.cpp",
|
| + "text/TextCodecUserDefinedTest.cpp",
|
| + "text/TextEncodingTest.cpp",
|
| + "text/WTFStringTest.cpp",
|
| + "typed_arrays/ArrayBufferBuilderTest.cpp",
|
| + ]
|
| +
|
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| + configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
| +
|
| + if (is_win) {
|
| + cflags = [ "/wd4068" ] # Unknown pragma.
|
| + }
|
| +
|
| + configs += [
|
| + "//third_party/WebKit/Source:config",
|
| + "//third_party/WebKit/Source:blink_pch",
|
| + ]
|
| +
|
| + deps = [
|
| + ":wtf",
|
| + "//base",
|
| + "//base/test:test_support",
|
| + "//testing/gmock",
|
| + "//testing/gtest",
|
| + ]
|
| +}
|
|
|