summaryrefslogtreecommitdiff
path: root/Source/UnitTests
AgeCommit message (Collapse)Author
2 daysCore/NetPlayProto: Add sf::Packet replacement, NetPacket.Jordan Woyak
12 daysMerge pull request #15018 from jordan-woyak/spsc-queue-node-arrayJordan Woyak
Common/SPSCQueue: Hold an array of values in each linked node to make SPSCQueue of u8 practical.
2026-11-21Common/SPSCQueue: Hold an array of values in each linked node to make ↵Jordan Woyak
SPSCQueue of u8 practical.
2026-11-15BitSet: Some small additionsMartino Fontana
Also add requirements for using range functions. And micro-optimize testing if a bit is set (GCC and MSVC struggle to emit `bt` or `tbz`/`tbnz` with `bs & (1 << n)` compared to `(bs >> n) & 1`).
2026-11-14Merge pull request #13704 from unexploredtest/cmake_sourceJordan Woyak
CMake: Fix relative pathing when project is imported
2026-11-04UnitTests/Core/PageFaultTest: Use a guaranteed monotonic clock instead of ↵Jordan Woyak
high_resolution_clock.
2026-11-01Merge pull request #14704 from JoshuaVandaele/mathutils-23JMC47
MathUtil: C++20/23 modernisations
2026-10-31CMake: Fix relative pathing when project is importedunexploredtest
2026-10-31Merge pull request #14928 from JosJuice/neon-texture-decoderJosJuice
VideoCommon: Add TextureDecoder_ARM64.cpp
2026-10-24Merge pull request #14940 from jordan-woyak/CoreTimingTest-fixJordan Woyak
UnitTests: Fix CoreTiming.SharedSlot test so it can run independently.
2026-10-19UnitTests: Fix CoreTiming.SharedSlot test so it can run independently.Jordan Woyak
2026-10-10UnitTests: Add test for TextureDecoderJosJuice
This compares TexDecoder_Decode, which has different implementations depending on the CPU ISA, against TexDecoder_DecodeTexel.
2026-08-22Jit: Use LazyMemoryRegion-backed bit setsJosJuice
JitCache has been using a class called ValidBlockBitSet. This commit replaces it with a new class called LazyMemoryRegionBitSet, which works similarly but is backed by a LazyMemoryRegion, letting us skip allocating memory for parts of the bit set that correspond to emulated memory regions where the game isn't storing any code. I have also added optimized functions for setting or clearing long runs of bits. Additionally, this commit replaces JitBase's three std::unordered_sets that are keeping track of instructions with LazyMemoryRegionBitSets. Here the benefit is more speed than memory usage. This improves NBA Live 2005's menu performance by 1% or so in SuperSamus's testing.
2026-08-08Merge pull request #14767 from JosJuice/state-nand-open-fileJosJuice
IOS/FS: Fix loading savestate when files are open
2026-07-27AchievementApprovedHash: Automatically generate hash using CMakeJoshua Vandaële
2026-07-26IOS/FS: Fix loading savestate when files are openJosJuice
We already had code to close open host files when reading or writing a savestate, but due to d35fe1b we also need to close open guest files when reading a savestate, otherwise DoStateRead fails to delete them. I was considering an alternative solution where instead of copying and clearing m_handles, we just set `handle.opened = false;` for each handle before reading a savestate (but not before writing a savestate). However, this wouldn't solve the problem of DoStateWriteOrMeasure's calls to OpenFile failing due to all handles being open. I'm not aware of any games that have that many handles open, though.
2026-07-25CWDemangler: Resolve missing-declarations warningsJoshua Vandaële
2026-07-24Remove Visual Studio Projects and Solutions in favor of CMakeJoshua Vandaële
2026-07-13MathUtil: C++20/23 modernisationsJoshua Vandaële
I've also created DegreesToRadians/RadiansToDegrees utility functions since there was a lot of repeated code
2026-07-11Core: Adjust emulated memory size automatically.cristian64
Dolphin now uses the simulated memory size defined in `bi2.bin` to adjust the memory size in the emulated console automatically. If **Enable Emulated Memory Size Override** has been enabled by the user, the fixed memory size specified for **MEM1** and **MEM2** are still used as they were before. Most retail games do not define the simulated memory size (Wii or Triforce games), or define it to a value that matches the default 24 MiB (GameCube games), so, in the general case, there is no behavior change. One game that sets the simulated memory to a non-default value is the debug build of _Mario Kart: Double Dash!!_, where the value is set to 48 MiB. This enhancement is focused mainly to the modding community. Prior to these changes, modded games with extended memory requirements would fail to launch in Dolphin [with no indication of what the problem is] if the user failed to set the emulated memory override to the correct value. Now, modding tools can specify the simulated memory size in the `bi2.bin` file to produce extended games that _just work_ in Dolphin, without cumbersome instructions that can be overlooked by the user.
2026-05-07Core: Implement automatic symbol demanglingAmber Brault
2026-04-27Merge pull request #13931 from SuperSamus/pikmin-squared-60fpsJMC47
GameINI: Add 60 FPS code for Pikmin Squared
2026-04-25Merge pull request #14308 from jordan-woyak/character-encodingJordan Woyak
StringUtil: Make UTF16ToUTF8 and UTF8ToUTF16 use custom encoding/decoding implementation.
2026-04-25GameINI: Add 60 FPS code for Pikmin SquaredMartino Fontana
2026-04-18StringUtil: Make UTF16ToUTF8 and UTF8ToUTF16 use custom encoding/decoding ↵Jordan Woyak
implementation to eliminate usage of deprecated std::wstring_convert.
2026-04-17Improve usage of std::move and const references parametersMartino Fontana
Accomplished using `run-clang-tidy` with `performance-move-const-arg,performance-unnecessary-value-param,modernize-pass-by-value`. Changed arguments to const references, removed them where inappropriate (e.g. sink parameters). Same with std::move. Manually reviewed each change to make sure that it makes sense, and do something more appropriate if possible.
2026-04-11Merge pull request #14500 from Sintendo/span2Jordan Woyak
Replace `const std::vector&` arguments with `std::span`
2026-04-04PageTableHostMappingTest: Fix copypaste error in misaligned+hole testJosJuice
Because of this mistake, HoleInMaskMisalignedPageTable was testing the same thing as MisalignedPageTable, which wasn't the intent.
2026-04-04PageTableHostMappingTest: Fix alignment for misaligned+hole testJosJuice
Mistakenly, MISALIGNED_HOLE_MASK_PAGE_TABLE_BASE was aligned and MISALIGNED_HOLE_MASK_PAGE_TABLE_BASE_ALIGNED was misaligned. It should be the other way around. These variables are unused due to a separate mistake which is corrected in the next commit.
2026-03-23Use more std::span argumentsSintendo
2026-02-22AchievementManager: APPROVED_LIST_HASH quality of life improvementsMartino Fontana
APPROVED_LIST_HASH is moved to a separate file, making tests compilation faster after changing it. The error message prints the hash in a way that it can be directly copy-pasted (though it still needs clang-format).
2026-02-15Network: Improve IPv4PortRange::ToString to support CIDR notation and only ↵Jordan Woyak
last octet difference.
2026-02-15Common/Network: Add structs: IPv4Port, IPv4PortRange and functions: ↵Jordan Woyak
IPAddressToString, ParseIPv4PortRange.
2026-02-15StringUtil: Add SplitStringIntoArray function template.Jordan Woyak
2026-02-04Merge pull request #13768 from JosJuice/page-table-fastmem-2JMC47
Core: Create fastmem mappings for page address translation
2026-02-04UnitTests: Add PageTableHostMappingTestJosJuice
2026-02-03Merge pull request #13594 from jordan-woyak/state-cleanupsJordan Woyak
State: Simplify interthread communication and general cleanups.
2026-01-25Remove unused importsMartino Fontana
Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...)
2026-01-19Common: Add TransferableSharedMutex class and unit tests.Jordan Woyak
2026-01-18Jit64: Add fres unit testJosJuice
2026-01-17Merge pull request #14267 from jordan-woyak/std-expectediwubcode
Common: Replace Result with std::expected.
2026-01-17Common: Replace Result with C++23's std::expected.Jordan Woyak
2026-01-17Fix various typos and spelling mistakesSintendo
2025-11-27Disable PatchAllowlistTest if USE_RETRO_ACHIEVEMENTS is OFFJoshua Vandaële
This fixes a build error when `-DENABLE_TESTS=ON` and `-DUSE_RETRO_ACHIEVEMENTS=OFF` are both set together, since AchievementManager is also behind an ifdef.
2025-11-16Merge pull request #13689 from JosJuice/lock-core-any-threadJosJuice
Core: Let any thread call previously host-thread-only functions
2025-11-10Core: Remove IsHostThreadJosJuice
The core no longer cares which thread is the host thread. Cleaning up Android's HostThreadLock is left for another PR, in part because the HostThreadLock in NativeConfig.cpp still serves a purpose, and in part to make any issues easier to bisect.
2025-11-09Common: Add a DirectIOFile class that allows for copies which are entirely ↵Jordan Woyak
thread safe.
2025-11-08Merge pull request #14020 from jordan-woyak/string-util-cleanupsJosJuice
StringUtil: Cleanups and add some character encoding conversion unit tests.
2025-11-02Common: Add AtomicMutex and SpinMutex classes as faster alternatives to ↵Jordan Woyak
std::mutex.
2025-11-02UnitTests: Add some StringUtil character encoding conversion tests.Jordan Woyak