summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2014-08-12 21:24:33 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2014-08-12 21:24:33 +0200
commite4d52d9afbf6aeb090b225cc4852936dd3be5017 (patch)
treeed3e453023b1592220fd286d26d64e038a0a953c /test
parent74312b0405d6fb5ed75c675ceed471e1e5086f00 (diff)
downloadcolobot-e4d52d9afbf6aeb090b225cc4852936dd3be5017.tar.gz
colobot-e4d52d9afbf6aeb090b225cc4852936dd3be5017.tar.bz2
colobot-e4d52d9afbf6aeb090b225cc4852936dd3be5017.zip
CProfile refactoring
Diffstat (limited to 'test')
-rw-r--r--test/unit/common/profile_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/common/profile_test.cpp b/test/unit/common/profile_test.cpp
index 1a4f239..2d21a90 100644
--- a/test/unit/common/profile_test.cpp
+++ b/test/unit/common/profile_test.cpp
@@ -17,23 +17,23 @@ protected:
TEST_F(CProfileTest, ReadTest)
{
- m_profile.SetUseLocalDirectory(true);
+ m_profile.SetUseCurrentDirectory(true);
- ASSERT_TRUE(m_profile.InitCurrentDirectory()); // load colobot.ini file
+ ASSERT_TRUE(m_profile.Init()); // load colobot.ini file
std::string result;
- ASSERT_TRUE(m_profile.GetLocalProfileString("test_string", "string_value", result));
+ ASSERT_TRUE(m_profile.GetStringProperty("test_string", "string_value", result));
ASSERT_STREQ("Hello world", result.c_str());
int int_value;
- ASSERT_TRUE(m_profile.GetLocalProfileInt("test_int", "int_value", int_value));
+ ASSERT_TRUE(m_profile.GetIntProperty("test_int", "int_value", int_value));
ASSERT_EQ(42, int_value);
float float_value;
- ASSERT_TRUE(m_profile.GetLocalProfileFloat("test_float", "float_value", float_value));
+ ASSERT_TRUE(m_profile.GetFloatProperty("test_float", "float_value", float_value));
ASSERT_FLOAT_EQ(1.5, float_value);
std::vector<std::string> list;
- list = m_profile.GetLocalProfileSection("test_multi", "entry");
+ list = m_profile.GetSection("test_multi", "entry");
ASSERT_EQ(5u, list.size());
}