aboutsummaryrefslogtreecommitdiff
path: root/tests/test-settings.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-06-24 00:06:04 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-06-24 00:06:04 -0500
commit373832769c30a950629a4ca9474bd7f5bf03a6b4 (patch)
treec859a9211aea6c973c75f6846321ac45a08f213a /tests/test-settings.cpp
parent0463fa7657b1aab4a3f5c6e7909ba1513c047968 (diff)
downloadayatana-indicator-datetime-373832769c30a950629a4ca9474bd7f5bf03a6b4.tar.gz
ayatana-indicator-datetime-373832769c30a950629a4ca9474bd7f5bf03a6b4.tar.bz2
ayatana-indicator-datetime-373832769c30a950629a4ca9474bd7f5bf03a6b4.zip
add GSettings support for specifying an alarm loop duration
Diffstat (limited to 'tests/test-settings.cpp')
-rw-r--r--tests/test-settings.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test-settings.cpp b/tests/test-settings.cpp
index 9af803f..2b500b2 100644
--- a/tests/test-settings.cpp
+++ b/tests/test-settings.cpp
@@ -101,7 +101,6 @@ protected:
g_clear_pointer(&tmp, g_free);
}
-#if 0
void TestIntProperty(core::Property<int>& property, const gchar* key)
{
EXPECT_EQ(g_settings_get_int(m_gsettings, key), property.get());
@@ -124,7 +123,6 @@ protected:
EXPECT_EQ(expected_value, g_settings_get_int(m_gsettings, key));
}
}
-#endif
};
/***
@@ -150,6 +148,11 @@ TEST_F(SettingsFixture, BoolProperties)
TestBoolProperty(m_settings->show_year, SETTINGS_SHOW_YEAR_S);
}
+TEST_F(SettingsFixture, IntProperties)
+{
+ TestIntProperty(m_settings->alarm_duration, SETTINGS_ALARM_DURATION_S);
+}
+
TEST_F(SettingsFixture, StringProperties)
{
TestStringProperty(m_settings->custom_time_format, SETTINGS_CUSTOM_TIME_FORMAT_S);