diff options
author | jan Iversen <jani@apache.org> | 2018-07-23 17:49:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-27 12:36:20 -0700 |
commit | f175890632d5845d57066b0669c347b4c0992ff9 (patch) | |
tree | efe856eb90e077c64f990b5ec5681c95eed7c866 /tests | |
parent | e0f1817fdc3b0024c5e97cfa0db048384aae6d78 (diff) | |
download | subsurface-f175890632d5845d57066b0669c347b4c0992ff9.tar.gz |
core: activate qPrefFacebook
remove Facebook from SettingsObjectWrapper and reference qPrefFacebook
update files using SettingsObjectWrapper/Facebook to use qPrefFacebook
this activated qPrefFacebook and removed the similar class from
SettingsObjectWrapper.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testpreferences.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp index bba580458..2fe863959 100644 --- a/tests/testpreferences.cpp +++ b/tests/testpreferences.cpp @@ -160,22 +160,22 @@ void TestPreferences::testPreferences() TEST(pp->po2ThresholdMin(), 4.0); TEST(pp->po2ThresholdMax(), 5.0); - auto fb = pref->facebook; - fb->setAccessToken("rand-access-token"); - fb->setUserId("tomaz-user-id"); - fb->setAlbumId("album-id"); - - TEST(fb->accessToken(), QStringLiteral("rand-access-token")); - TEST(fb->userId(), QStringLiteral("tomaz-user-id")); - TEST(fb->albumId(), QStringLiteral("album-id")); - - fb->setAccessToken("rand-access-token-2"); - fb->setUserId("tomaz-user-id-2"); - fb->setAlbumId("album-id-2"); - - TEST(fb->accessToken(), QStringLiteral("rand-access-token-2")); - TEST(fb->userId(), QStringLiteral("tomaz-user-id-2")); - TEST(fb->albumId(), QStringLiteral("album-id-2")); + auto fb = qPrefFacebook::instance(); + fb->set_access_token("rand-access-token"); + fb->set_user_id("tomaz-user-id"); + fb->set_album_id("album-id"); + + TEST(fb->access_token(),QStringLiteral("rand-access-token")); + TEST(fb->user_id(), QStringLiteral("tomaz-user-id")); + TEST(fb->album_id(), QStringLiteral("album-id")); + + fb->set_access_token("rand-access-token-2"); + fb->set_user_id("tomaz-user-id-2"); + fb->set_album_id("album-id-2"); + + TEST(fb->access_token(),QStringLiteral("rand-access-token-2")); + TEST(fb->user_id(), QStringLiteral("tomaz-user-id-2")); + TEST(fb->album_id(), QStringLiteral("album-id-2")); auto geo = pref->geocoding; geo->setFirstTaxonomyCategory(TC_NONE); |