summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-22 16:19:22 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-25 08:35:04 -0700
commit3d6848b22c9fb64a99bb3dec535431a6cab09ad9 (patch)
treec1a7aedcf02120c9ea0031194b1cef2d15db97fe /tests
parent98820cf970335523b4cd2a84a025c12b5480e0aa (diff)
downloadsubsurface-3d6848b22c9fb64a99bb3dec535431a6cab09ad9.tar.gz
core: activate qPrefDiveComputer
remove DiveComputer from SettingsObjectWrapper and reference qPrefDiveComputer update files using SettingsObjectWrapper/DiveComputer to use qPrefDiveComputer this activated qPrefDiveComputer and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testpreferences.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp
index 3f51f0ea0..de39b0fd5 100644
--- a/tests/testpreferences.cpp
+++ b/tests/testpreferences.cpp
@@ -468,25 +468,25 @@ void TestPreferences::testPreferences()
TEST(update->nextCheck(), date);
auto dc = pref->dive_computer_settings;
- dc->setDevice("TomazComputer");
- TEST(dc->dc_device(), QStringLiteral("TomazComputer"));
- dc->setDevice("Deepwater");
- TEST(dc->dc_device(), QStringLiteral("Deepwater"));
-
- dc->setDownloadMode(0);
- TEST(dc->downloadMode(), 0);
- dc->setDownloadMode(1);
- TEST(dc->downloadMode(), 1);
-
- dc->setProduct("Thingy1");
- TEST(dc->dc_product(), QStringLiteral("Thingy1"));
- dc->setProduct("Thingy2");
- TEST(dc->dc_product(), QStringLiteral("Thingy2"));
-
- dc->setVendor("Sharewater");
- TEST(dc->dc_vendor(), QStringLiteral("Sharewater"));
- dc->setVendor("OSTS");
- TEST(dc->dc_vendor(), QStringLiteral("OSTS"));
+ dc->set_device("TomazComputer");
+ TEST(dc->device(), QStringLiteral("TomazComputer"));
+ dc->set_device("Deepwater");
+ TEST(dc->device(), QStringLiteral("Deepwater"));
+
+ dc->set_download_mode(0);
+ TEST(dc->download_mode(), 0);
+ dc->set_download_mode(1);
+ TEST(dc->download_mode(), 1);
+
+ dc->set_product("Thingy1");
+ TEST(dc->product(), QStringLiteral("Thingy1"));
+ dc->set_product("Thingy2");
+ TEST(dc->product(), QStringLiteral("Thingy2"));
+
+ dc->set_vendor("Sharewater");
+ TEST(dc->vendor(), QStringLiteral("Sharewater"));
+ dc->set_vendor("OSTS");
+ TEST(dc->vendor(), QStringLiteral("OSTS"));
}
QTEST_MAIN(TestPreferences)