gecko-dev/mfbt/tests
Emilio Cobos Álvarez f67e589a85 Bug 1877672 - Make FunctionRef a MOZ_TEMPORARY_CLASS. r=nika
This prevents it from being used in the foot-gunny way described in
comment 0.

This in turn allows us to add a constructor for temporary callables.

Turns out we only had test usages of non-temporary FunctionRefs, so this
is much simpler than the initial approach I considered.

Fix the tests to keep compiling, and add a test for the new constructor.

Differential Revision: https://phabricator.services.mozilla.com/D200157
2024-02-02 19:21:20 +00:00
..
gtest
TestAlgorithm.cpp
TestArray.cpp
TestArrayUtils.cpp
TestAtomicBitfields.cpp
TestAtomics.cpp
TestBinarySearch.cpp
TestBitSet.cpp
TestBloomFilter.cpp
TestBufferList.cpp
TestCasting.cpp
TestCeilingFloor.cpp
TestCheckedInt.cpp
TestCompactPair.cpp
TestCountPopulation.cpp
TestCountZeroes.cpp
TestDefineEnum.cpp
TestDoublyLinkedList.cpp
TestEndian.cpp
TestEnumSet.cpp
TestEnumTypeTraits.cpp
TestEnumeratedArray.cpp
TestFastBernoulliTrial.cpp
TestFloatingPoint.cpp
TestFunctionRef.cpp Bug 1877672 - Make FunctionRef a MOZ_TEMPORARY_CLASS. r=nika 2024-02-02 19:21:20 +00:00
TestFunctionTypeTraits.cpp
TestHashTable.cpp
TestIntegerRange.cpp
TestJSONWriter.cpp
TestLinkedList.cpp
TestMacroArgs.cpp
TestMacroForEach.cpp
TestMathAlgorithms.cpp
TestMaybe.cpp
TestNonDereferenceable.cpp
TestNotNull.cpp
TestPoisonArea.cpp
TestRandomNum.cpp
TestRange.cpp
TestRefPtr.cpp
TestResult.cpp Bug 1850723 - Make mozilla::Result constructor take another result with convertible value. r=emilio,glandium 2023-11-03 08:13:19 +00:00
TestRollingMean.cpp
TestSHA1.cpp
TestSIMD.cpp
TestSPSCQueue.cpp Bug 1844181 - Add memory synchronization to SPSCQueue's thread id reset methods. r=decoder,padenot,handyman 2023-10-09 13:02:58 +00:00
TestSaturate.cpp
TestScopeExit.cpp
TestSegmentedVector.cpp Bug 1869256 - Add move assignment operator for SegmentedVector r=mccr8 2023-12-11 17:06:08 +00:00
TestSmallPointerArray.cpp
TestSplayTree.cpp
TestTextUtils.cpp
TestThreadSafeWeakPtr.cpp
TestTypedEnum.cpp
TestUniquePtr.cpp Bug 1873769 - Add TempPtrToSetter(UniquePtr<T>*) -> T**-ish for safe out-ptr RAII. r=mccr8 2024-01-26 21:05:30 +00:00
TestUtf8.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2023-12-04 10:09:36 +00:00
TestVariant.cpp
TestVector.cpp
TestWeakPtr.cpp
TestWinArchDefs.cpp Bug 1866562 - Make MSVC-style architecture constants consistent in mingwclang builds. r=tjr 2023-12-11 11:01:34 +00:00
TestWrappingOperations.cpp
TestXorShift128PlusRNG.cpp
moz.build Bug 1859908 - convert .ini manifests to .toml: batch 20 marionette.ini r=jmaher,webdriver-reviewers,necko-reviewers,application-update-reviewers,search-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,bytesized,kershaw,whimboo,dao,jesup,Standard8 2024-01-02 15:31:51 +00:00