1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 "TestArenaAllocator.cpp",
10 "TestArrayAlgorithm.cpp",
14 "TestCallTemplates.cpp",
15 "TestCloneInputStream.cpp",
19 "TestDelayedRunnable.cpp",
22 "TestEventPriorities.cpp",
23 "TestEventTargetQI.cpp",
25 "TestGCPostBarriers.cpp",
28 "TestInputStreamLengthHelper.cpp",
29 "TestJSHolderMap.cpp",
30 "TestLogCommandLineHandler.cpp",
32 "TestMemoryPressure.cpp",
36 "TestMultiplexInputStream.cpp",
37 "TestNonBlockingAsyncInputStream.cpp",
39 "TestNSPRLogModulesParser.cpp",
40 "TestObserverArray.cpp",
41 "TestObserverService.cpp",
42 "TestOwningNonNull.cpp",
44 "TestPriorityQueue.cpp",
46 "TestRacingServiceManager.cpp",
47 "TestRecursiveMutex.cpp",
50 "TestSegmentedBuffer.cpp",
51 "TestSlicedInputStream.cpp",
52 "TestSmallArrayLRUCache.cpp",
53 "TestSnappyStreams.cpp",
54 "TestStateMirroring.cpp",
55 "TestStateWatching.cpp",
56 "TestStorageStream.cpp",
58 "TestStringStream.cpp",
59 "TestSubstringTuple.cpp",
60 "TestSynchronization.cpp",
64 "TestTextFormatter.cpp",
65 "TestThreadManager.cpp",
67 "TestThreadPoolListener.cpp",
68 "TestThrottledEventQueue.cpp",
75 if CONFIG["OS_TARGET"] != "Android":
81 # skip the test on windows10-aarch64 due to perma-fail, bug 1422219
82 if not (CONFIG["OS_TARGET"] == "WINNT" and CONFIG["TARGET_CPU"] == "aarch64"):
83 UNIFIED_SOURCES += ["TestThreadUtils.cpp"]
85 # skip the test on OSX due to frequent failures (bug 1571186)
86 if CONFIG["OS_TARGET"] != "Darwin":
87 UNIFIED_SOURCES += ["TestExpirationTracker.cpp"]
89 # skip the test on windows10-aarch64 and Android, aarch64 due to bug 1545670
90 if CONFIG["OS_TARGET"] != "Android" and not (
91 CONFIG["OS_TARGET"] == "WINNT" and CONFIG["TARGET_CPU"] == "aarch64"
93 UNIFIED_SOURCES += ["TestTimers.cpp"]
98 and CONFIG["OS_ARCH"] not in ("WINNT")
99 and CONFIG["OS_TARGET"] != "Android"
101 # FIXME bug 523392: TestDeadlockDetector doesn't like Windows
102 # Bug 1054249: Doesn't work on Android
104 "TestDeadlockDetector.cpp",
105 "TestDeadlockDetectorScalability.cpp",
108 if CONFIG["OS_TARGET"] == "WINNT":
110 "TestAvailableMemoryWatcherWin.cpp",
111 "TestFileNTFSSpecialPaths.cpp",
112 "TestFilePreferencesWin.cpp",
113 "TestHandleWatcher.cpp",
117 "TestFilePreferencesUnix.cpp",
120 if CONFIG["OS_TARGET"] == "Darwin":
122 "TestAvailableMemoryWatcherMac.cpp",
123 "TestThreads_mac.mm",
126 if CONFIG["TARGET_OS"] == "OSX":
128 "TestMacNSURLEscaping.mm",
131 if CONFIG["OS_TARGET"] == "Linux":
133 "TestAvailableMemoryWatcherLinux.cpp",
137 CONFIG["WRAP_STL_INCLUDES"]
138 and CONFIG["CC_TYPE"] != "clang-cl"
139 and CONFIG["OS_TARGET"] != "Android"
142 "TestSTLWrappers.cpp",
145 # Compile TestAllocReplacement separately so Windows headers don't pollute
146 # the global namespace for other files.
147 if CONFIG["MOZ_MEMORY"]:
149 "TestAllocReplacement.cpp",
154 "TestCOMPtr.cpp", # Redefines IFoo and IBar
155 "TestHashtables.cpp", # Redefines IFoo
156 "TestNsRefPtr.cpp", # Redefines Foo
161 "/toolkit/components/telemetry/tests/gtest",
167 script="../../ds/tools/make_dafsa.py",
168 inputs=["dafsa_test_1.dat"],
171 TEST_HARNESS_FILES.gtest += [
173 "wikipedia/de-edit.txt",
183 FINAL_LIBRARY = "xul-gtest"
185 include("/ipc/chromium/chromium-config.mozbuild")