1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00
ladybird/Tests/AK
Andrew Kaster 01ac48b36f AK: Support storing blocks in AK::Function
This has two slightly different implementations for ARC and non-ARC
compiler modes. The main idea is to store a block pointer as our
closure and use either ARC magic or BlockRuntime methods to manage
the memory for the block. Things are complicated by the fact that
we don't yet force-enable swift, so we can't count on the swift.org
llvm fork being our compiler toolchain. The patch adds some CMake
checks and ifdefs to still support environments without support
for blocks or ARC.
2025-03-18 17:15:08 -06:00
..
CMakeLists.txt AK: Support storing blocks in AK::Function 2025-03-18 17:15:08 -06:00
TestAKBindings.swift AK: Skip test for StringView's CxxSequence conformance for now 2024-11-15 10:51:45 -07:00
TestAllOf.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestAnyOf.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestArray.cpp AK: Conform SimpleIterator to the random access iterator requirements 2024-08-17 17:44:37 -06:00
TestAtomic.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestBadge.cpp
TestBase64.cpp AK: Add a Base64 decoder to decode into an existing buffer 2024-09-03 17:43:03 +02:00
TestBinaryHeap.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestBinarySearch.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestBitCast.cpp
TestBitmap.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestBitStream.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestBuiltinWrappers.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestByteBuffer.cpp AK: Add an option to zero-fill ByteBuffer data upon growth 2023-12-27 19:30:39 +01:00
TestByteString.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestCharacterTypes.cpp AK: Add CharacterTypes::is_ascii_base36_digit() 2024-01-13 19:01:35 -07:00
TestChecked.cpp AK/Checked: Dont verify overflow bit in lvalue operations 2025-02-25 11:20:13 +00:00
TestCircularBuffer.cpp Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
TestCircularQueue.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestDisjointChunks.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestDistinctNumeric.cpp
TestDoublyLinkedList.cpp
TestDuration.cpp AK: Stop exporting AK::Duration into the global namespace 2024-07-18 09:43:38 +01:00
TestEndian.cpp
TestEnumBits.cpp
TestEnumerate.cpp AK: Introduce AK::enumerate 2024-03-23 09:02:58 -04:00
TestFind.cpp
TestFixedArray.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestFixedPoint.cpp AK: Stop exporting AK::FixedPoint into the global namespace 2024-07-18 09:43:38 +01:00
TestFloatingPointParsing.cpp Tests: Remove SerenityOS Check 2024-12-06 14:21:56 -07:00
TestFlyString.cpp AK: Make "foo"_fly_string infallible 2023-08-07 16:03:27 +02:00
TestFormat.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestFunction.mm AK: Support storing blocks in AK::Function 2025-03-18 17:15:08 -06:00
TestGenericLexer.cpp AK: Remove ByteString from GenericLexer 2024-01-12 17:03:53 -07:00
TestGenericShorthands.cpp AK: Add first_is_equal_to_all_of() 2025-03-18 21:55:06 +01:00
TestHashFunctions.cpp AK: Implement SipHash as the default hash algorithm for most use cases 2023-10-01 11:06:36 +03:30
TestHashMap.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestHashTable.cpp Meta: Update my email address everywhere 2024-11-01 12:14:53 +01:00
TestHex.cpp
TestIndexSequence.cpp AK: Make IndexSequence use size_t 2024-02-11 18:53:00 +01:00
TestInsertionSort.cpp AK: Fix InsertionSort to respect specified bounds 2024-12-06 06:44:27 +00:00
TestIntegerMath.cpp AK: Prevent overflow of the min when clamping unsigned values to signed 2024-06-24 12:41:32 -06:00
TestIntrusiveList.cpp AK: Fix crash during teardown of self-owning objects 2023-04-21 18:15:00 +02:00
TestIntrusiveRedBlackTree.cpp Everywhere: Remove NonnullOwnPtr.h includes 2023-03-06 23:46:35 +01:00
TestIPv4Address.cpp Everywhere: Run clang-format 2024-04-24 16:50:01 -04:00
TestIPv6Address.cpp AK: Migrate IPv6Address::to_deprecated_string() to ::to_string() 2023-06-09 19:38:14 +01:00
TestJSON.cpp Tests: Add a test for moving an object out of a JSON value 2025-02-24 12:05:29 -05:00
TestLEB128.cpp AK: Remove the fallible constructor from FixedMemoryStream 2023-02-08 17:44:32 +00:00
TestLexicalPath.cpp AK: Make LexicalPath::relative_path() fallible 2024-11-09 12:42:27 -07:00
TestMemory.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestMemoryStream.cpp AK: Add methods to BufferedStream to resize the user supplied buffer 2024-04-21 11:46:55 +02:00
TestNeverDestroyed.cpp Tests: Stop invoking UB in AK::NeverDestroyed's tests 2024-06-05 17:19:14 -06:00
TestNonnullOwnPtr.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestNonnullRefPtr.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestNumberFormat.cpp
TestOptional.cpp AK: Don't implicitly convert Optional<T&> to Optional<T> 2024-12-04 01:58:22 +01:00
TestOptionParser.cpp AK: Update OptionParser::m_arg_index by substracting skipped args 2024-02-06 00:08:30 +01:00
TestOwnPtr.cpp AK: Fix crash during teardown of self-owning objects 2023-04-21 18:15:00 +02:00
TestPrint.cpp
TestQueue.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestQuickSort.cpp Tests: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls 2023-06-18 08:47:51 +01:00
TestRedBlackTree.cpp
TestRefPtr.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestSegmentedVector.cpp AK+LibWeb: Use segmented vector to store commands in RecordingPainter 2023-12-30 23:02:46 +01:00
TestSIMD.cpp Meta: Update my email address everywhere 2024-11-01 12:14:53 +01:00
TestSinglyLinkedList.cpp
TestSourceGenerator.cpp AK: Make SourceGenerator::fork() infallible 2023-08-22 13:08:24 +02:00
TestSourceLocation.cpp
TestSpan.cpp AK: Conform SimpleIterator to the random access iterator requirements 2024-08-17 17:44:37 -06:00
TestStack.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestStdLibExtras.cpp AK: Make ceil_div() handle one argument being negative correctly 2024-04-27 07:09:08 +02:00
TestString.cpp AK+LibUnicode: Add a method to trim non-ASCII whitespace from a String 2024-11-03 20:42:46 -05:00
TestStringFloatingPointConversions.cpp AK: Define FloatingPointExponentialForm comparator in the AK namespace 2024-08-13 14:11:05 +02:00
TestStringUtils.cpp AK: Add unit tests for StringUtils::find_last 2024-01-04 11:28:03 -05:00
TestStringView.cpp AK: Ensure empty StringViews all compare as equal 2024-11-15 23:18:29 +01:00
TestTrie.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestTuple.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestTypedTransfer.cpp
TestTypeTraits.cpp Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
TestUFixedBigInt.cpp AK: Make BigIntBase more agnostic to non native word sizes 2024-03-25 14:26:29 -06:00
TestUtf8.cpp AK: Add Utf8View::for_each_split_view() method 2024-11-15 23:18:29 +01:00
TestUtf16.cpp AK: Add a method to compute UTF-16 length from a UTF-8 string 2024-07-31 05:55:34 -04:00
TestVariant.cpp AK+Everywhere: Rename verify_cast to as 2025-01-21 11:34:06 -05:00
TestVector.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
TestWeakPtr.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00