dolphin/Source/UnitTests/Core
Lioncash 6f473b96d0 PowerPC: Convert CPUCore enum into an enum class
Makes the enum values strongly-typed and prevents the identifiers from
polluting the PowerPC namespace. This also cleans up the parameters of
some functions where we were accepting an ambiguous int type and
expecting the correct values to be passed in.

Now those parameters accept a PowerPC::CPUCore type only, making it
immediately obvious which values should be passed in. It also turns out
we were storing these core types into other structures as plain ints,
which have also been corrected.

As this type is used directly with the configuration code, we need to
provide our own overloaded insertion (<<) and extraction (>>) operators
in order to make it compatible with it. These are fairly trivial to
implement, so there's no issue here.

A minor adjustment to TryParse() was required, as our generic function
was doing the following:

N tmp = 0;

which is problematic, as custom types may not be able to have that
assignment performed (e.g. strongly-typed enums), so we change this to:

N tmp;

which is sufficient, as the value is attempted to be initialized
immediately under that statement.
2018-06-15 10:27:59 -04:00
..
DSP UnitTests: Add DSP accelerator tests 2017-09-24 20:48:29 +02:00
IOS FS: Add a struct for modes 2018-06-03 20:45:35 +02:00
CMakeLists.txt UnitTests: Add tests for the Wii filesystem 2018-04-15 14:29:27 +02:00
CoreTimingTest.cpp PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
MMIOTest.cpp Merge Core/Config/Config.h into Common/Config/Config.h 2017-07-09 16:28:54 -07:00
PageFaultTest.cpp CPUCoreBase: Make the GetName() member function const qualified 2018-03-24 16:17:39 -04:00