Bug 1693862 [wpt PR 27525] - [Credentialless] WPT fetch, a=testonly
[gecko.git] / mfbt / tests / moz.build
blob3597222b5438b1b6c808a1c9b6e58e4c7f53aa45
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/.
7 if CONFIG["MOZ_WIDGET_TOOLKIT"]:
8     TEST_DIRS += [
9         "gtest",
10     ]
12 # Important: for these tests to be run, they also need to be added
13 # to testing/cppunittest.ini.
14 CppUnitTests(
15     [
16         "TestAlgorithm",
17         "TestArray",
18         "TestArrayUtils",
19         "TestAtomicBitfields",
20         "TestAtomics",
21         "TestBinarySearch",
22         "TestBitSet",
23         "TestBloomFilter",
24         "TestBufferList",
25         "TestCasting",
26         "TestCeilingFloor",
27         "TestCheckedInt",
28         "TestCompactPair",
29         "TestCountPopulation",
30         "TestCountZeroes",
31         "TestDefineEnum",
32         "TestDoublyLinkedList",
33         "TestEndian",
34         "TestEnumeratedArray",
35         "TestEnumSet",
36         "TestEnumTypeTraits",
37         "TestFastBernoulliTrial",
38         "TestFloatingPoint",
39         "TestFunctionRef",
40         "TestFunctionTypeTraits",
41         "TestHashTable",
42         "TestIntegerPrintfMacros",
43         "TestIntegerRange",
44         "TestJSONWriter",
45         "TestLinkedList",
46         "TestMacroArgs",
47         "TestMacroForEach",
48         "TestMathAlgorithms",
49         "TestMaybe",
50         "TestNonDereferenceable",
51         "TestNotNull",
52         "TestRandomNum",
53         "TestRange",
54         "TestRefPtr",
55         "TestResult",
56         "TestRollingMean",
57         "TestSaturate",
58         "TestScopeExit",
59         "TestSegmentedVector",
60         "TestSHA1",
61         "TestSmallPointerArray",
62         "TestSplayTree",
63         "TestSPSCQueue",
64         "TestTemplateLib",
65         "TestTextUtils",
66         "TestThreadSafeWeakPtr",
67         "TestTuple",
68         "TestTypedEnum",
69         "TestTypeTraits",
70         "TestUniquePtr",
71         "TestVariant",
72         "TestVector",
73         "TestWeakPtr",
74         "TestWrappingOperations",
75         "TestXorShift128PlusRNG",
76     ]
79 # Not to be unified with the rest, because this test
80 # sets MOZ_PRETEND_NO_JSRUST, which changes the behavior
81 # of the included headers.
82 CppUnitTests(
83     [
84         "TestUtf8",
85     ]
88 if not CONFIG["MOZ_ASAN"]:
89     CppUnitTests(
90         [
91             "TestPoisonArea",
92         ]
93     )
95 # Since we link directly with MFBT object files, define IMPL_MFBT
96 DEFINES["IMPL_MFBT"] = True
98 DisableStlWrapping()
100 if CONFIG["CC_TYPE"] == "clang-cl":
101     CXXFLAGS += [
102         "-wd4275",  # non dll-interface class used as base for dll-interface class
103         "-wd4530",  # C++ exception handler used, but unwind semantics are not enabled
104     ]
106 USE_LIBS += [
107     "mfbt",
110 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
111     CXXFLAGS += ["-Wno-error=shadow"]