gecko-dev/mfbt/tests
Emilio Cobos Álvarez c3ee3ac3a8 Bug 1418624 - Allow mozilla::Result to be moved, make unwrap{,Err}() move, and add inspect() APIs that return references. r=froydnj
Also adjust some of the callers that were either calling unwrap() repeatedly on
the same result, or were doing silly copies, to use inspect().

We could try to use stuff like:

https://clang.llvm.org/docs/AttributeReference.html#consumed-annotation-checking

Differential Revision: https://phabricator.services.mozilla.com/D41425

--HG--
extra : moz-landing-system : lando
2019-08-13 08:26:18 +00:00
..
gtest Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi 2019-04-05 21:42:17 +00:00
TestAlgorithm.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestArray.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestArrayUtils.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestAtomics.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestBinarySearch.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestBloomFilter.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestBufferList.cpp Bug 1353767 - BufferList methods that can OOM should all be MOZ_MUST_USE. r=billm 2019-03-26 13:24:00 +02:00
TestCasting.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestCeilingFloor.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestCheckedInt.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestCountPopulation.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestCountZeroes.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestDefineEnum.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestDoublyLinkedList.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestEndian.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
TestEnumSet.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestEnumTypeTraits.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestEnumeratedArray.cpp Bug 1546697 - EnumeratedArray should have a copy assignment operator. r=froydnj 2019-04-25 16:40:47 +00:00
TestFastBernoulliTrial.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestFloatingPoint.cpp Bug 1526507 - Use std::exp2{,f}(n) instead of pow{,f}(2.0, n) in TestFloatingPoint.cpp to be (hopefully) more resilient against standard library imprecision in the latter. r=dmajor 2019-03-25 17:54:25 +00:00
TestFunctionTypeTraits.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestIntegerPrintfMacros.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
TestIntegerRange.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestJSONWriter.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestLinkedList.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestMacroArgs.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestMacroForEach.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestMathAlgorithms.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestMaybe.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestNonDereferenceable.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestNotNull.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestPair.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestPoisonArea.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
TestRandomNum.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestRange.cpp Bug 1469155 - Add overloading for std::nullptr_t for RangedPtr equality operator r=froydnj 2019-03-26 19:10:24 +00:00
TestRefPtr.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestResult.cpp Bug 1418624 - Allow mozilla::Result to be moved, make unwrap{,Err}() move, and add inspect() APIs that return references. r=froydnj 2019-08-13 08:26:18 +00:00
TestRollingMean.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestSHA1.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestSPSCQueue.cpp Bug 1546012 - Avoid slow sleeps on Android in TestSPSCQueue; r=padenot 2019-04-23 13:39:36 +00:00
TestSaturate.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestScopeExit.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestSegmentedVector.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestSmallPointerArray.cpp Bug 1562789 - SmallPointerArray should support moves, and have an IsEmpty() helper. r=froydnj 2019-07-02 18:50:04 +00:00
TestSplayTree.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestTemplateLib.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestTextUtils.cpp Bug 1453456 - Remove nsCRT::IsAscii(null-terminated string) in favor of mozilla::IsAsciiNullTerminated. r=froydnj 2019-02-25 12:22:24 -08:00
TestThreadSafeWeakPtr.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestTuple.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestTypeTraits.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestTypedEnum.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
TestUniquePtr.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestUtf8.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
TestVariant.cpp Bug 1546853: Implement mozilla::Variant::addTagToHash. r=froydnj 2019-04-25 14:03:40 +00:00
TestVector.cpp Bug 1539322 - Add Vector::eraseIf and Vector::eraseIfEqual - r=froydnj 2019-03-28 01:00:35 +00:00
TestWeakPtr.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestWrappingOperations.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
TestXorShift128PlusRNG.cpp Bug 1513205 - Also update the tests to match the Google coding style r=Ehsan 2018-12-14 18:10:35 +00:00
moz.build Bug 1512504 - Remove support for MSVC. r=froydnj 2019-02-14 21:45:27 +00:00