1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00
rpcs3/rpcs3-tests/stdafx.h

25 lines
758 B
C
Raw Normal View History

2015-10-21 09:24:02 +02:00
#pragma once
// Headers for CppUnitTest
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
// Use stdafx.h from emucore
#include "../rpcs3/stdafx.h"
#include <locale>
#include <codecvt>
#define TEST_LOG(text, ...) Microsoft::VisualStudio::CppUnitTestFramework::Logger::WriteMessage(fmt::format("%s (line %d): " text, __FUNCTION__, __LINE__, __VA_ARGS__).c_str())
#define TEST_FAILURE(text, ...) Microsoft::VisualStudio::CppUnitTestFramework::Assert::Fail(std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>>().from_bytes(fmt::format(text, __VA_ARGS__)).c_str(), LINE_INFO())
// Emulator environment
#include "Emu/System.h"
#include "Emu/Memory/Memory.h"
static void setup_ps3_environment()
{
vm::ps3::init();
}