mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Move IStream, MemoryStream, FileStream into OpenRCT2 namespace
This commit is contained in:
@@ -26,7 +26,7 @@ static auto Enum_Currency = ConfigEnum<int32_t>({
|
||||
|
||||
TEST_F(IniWriterTest, create_empty)
|
||||
{
|
||||
MemoryStream ms(0);
|
||||
OpenRCT2::MemoryStream ms(0);
|
||||
ASSERT_EQ(ms.CanRead(), true);
|
||||
ASSERT_EQ(ms.CanWrite(), true);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
@@ -36,7 +36,7 @@ TEST_F(IniWriterTest, create_empty)
|
||||
|
||||
TEST_F(IniWriterTest, create_one_section)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteSection("OpenRCT2");
|
||||
@@ -54,7 +54,7 @@ TEST_F(IniWriterTest, create_one_section)
|
||||
|
||||
TEST_F(IniWriterTest, create_multiple_sections)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteSection("OpenRCT1");
|
||||
@@ -78,7 +78,7 @@ TEST_F(IniWriterTest, create_multiple_sections)
|
||||
|
||||
TEST_F(IniWriterTest, create_loose_bool_entry)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteBoolean("boolval", true);
|
||||
@@ -96,7 +96,7 @@ TEST_F(IniWriterTest, create_loose_bool_entry)
|
||||
|
||||
TEST_F(IniWriterTest, create_loose_enum_entry)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteEnum("by_string", "stringval");
|
||||
@@ -115,7 +115,7 @@ TEST_F(IniWriterTest, create_loose_enum_entry)
|
||||
|
||||
TEST_F(IniWriterTest, create_loose_float_entry)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteFloat("one", 1.);
|
||||
@@ -134,7 +134,7 @@ TEST_F(IniWriterTest, create_loose_float_entry)
|
||||
|
||||
TEST_F(IniWriterTest, create_loose_int32_t_entry)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteInt32("one", 1);
|
||||
@@ -159,7 +159,7 @@ TEST_F(IniWriterTest, create_loose_int32_t_entry)
|
||||
|
||||
TEST_F(IniWriterTest, create_loose_string_entry)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteString("path", u8"C:'\\some/dir\\here/神鷹暢遊");
|
||||
@@ -177,7 +177,7 @@ TEST_F(IniWriterTest, create_loose_string_entry)
|
||||
|
||||
TEST_F(IniWriterTest, create_multiple_section_with_values)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteSection("bool");
|
||||
@@ -205,7 +205,7 @@ TEST_F(IniWriterTest, create_multiple_section_with_values)
|
||||
|
||||
TEST_F(IniWriterTest, create_duplicate_sections)
|
||||
{
|
||||
MemoryStream ms(1000);
|
||||
OpenRCT2::MemoryStream ms(1000);
|
||||
IIniWriter* iw = CreateIniWriter(&ms);
|
||||
ASSERT_NE(iw, nullptr);
|
||||
iw->WriteSection("section");
|
||||
|
||||
Reference in New Issue
Block a user