Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/tests/test_ComponentManager.h
Show All 32 Lines | |||||
#define TS_ASSERT_STREAM(stream, len, buffer) \ | #define TS_ASSERT_STREAM(stream, len, buffer) \ | ||||
TS_ASSERT_EQUALS(stream.str().length(), (size_t)len); \ | TS_ASSERT_EQUALS(stream.str().length(), (size_t)len); \ | ||||
TS_ASSERT_SAME_DATA(stream.str().data(), buffer, len) | TS_ASSERT_SAME_DATA(stream.str().data(), buffer, len) | ||||
#define TS_ASSERT_THROWS_PSERROR(e, t, s) \ | #define TS_ASSERT_THROWS_PSERROR(e, t, s) \ | ||||
TS_ASSERT_THROWS_EQUALS(e, const t& ex, std::string(ex.what()), s) | TS_ASSERT_THROWS_EQUALS(e, const t& ex, std::string(ex.what()), s) | ||||
template class std::map<int, void*>; | |||||
class TestComponentManager : public CxxTest::TestSuite | class TestComponentManager : public CxxTest::TestSuite | ||||
{ | { | ||||
public: | public: | ||||
void setUp() | void setUp() | ||||
{ | { | ||||
g_VFS = CreateVfs(); | g_VFS = CreateVfs(); | ||||
TS_ASSERT_OK(g_VFS->Mount(L"", DataDir() / "mods" / "_test.sim" / "", VFS_MOUNT_MUST_EXIST)); | TS_ASSERT_OK(g_VFS->Mount(L"", DataDir() / "mods" / "_test.sim" / "", VFS_MOUNT_MUST_EXIST)); | ||||
TS_ASSERT_OK(g_VFS->Mount(L"cache", DataDir() / "_testcache" / "", 0, VFS_MAX_PRIORITY)); | TS_ASSERT_OK(g_VFS->Mount(L"cache", DataDir() / "_testcache" / "", 0, VFS_MAX_PRIORITY)); | ||||
▲ Show 20 Lines • Show All 855 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator