diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-03-21 09:03:07 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-03-21 09:03:07 +0100 |
| commit | b24c48f5e438d01976227c54b7ce6bb991690bb1 (patch) | |
| tree | f738e894a946afc9fc4e365ce8e14bf694973d62 /tests | |
| parent | 71e7fc7a81c10c3621a627694a14ecc057e995b2 (diff) | |
TestUnitySettings: initialize the form-factor as desktop, by default
(bzr r3725.7.27)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_unity_settings.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_unity_settings.cpp b/tests/test_unity_settings.cpp index 594a36c6b..9be6aea29 100644 --- a/tests/test_unity_settings.cpp +++ b/tests/test_unity_settings.cpp @@ -39,14 +39,13 @@ public: TestUnitySettings() : gsettings(g_settings_new("com.canonical.Unity")) , unity_settings(new unity::Settings) - {} + { + g_settings_set_enum(gsettings, "form-factor", static_cast<int>(unity::FormFactor::DESKTOP)); + } ~TestUnitySettings() { - std::unique_ptr<gchar*[], void(*)(gchar**)> keys(g_settings_list_keys(gsettings), g_strfreev); - - for (int i = 0; keys[i]; ++i) - g_settings_reset(gsettings, keys[i]); + g_settings_reset(gsettings, "form-factor"); } }; |
