diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-08-20 16:37:42 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-08-28 09:48:45 +0300 |
commit | f7ccea7bca79f1dc21e497872a419446f20d211e (patch) | |
tree | 87ad85a6e402908ce5c7f3439e0e25b889333c1c /src/settings/test/test_settingsdialog.cpp | |
parent | Add rekonf script to generate SettingsWidgets (diff) | |
download | rekonq-f7ccea7bca79f1dc21e497872a419446f20d211e.tar.xz |
Add Setting and MockSettings
- rename Settings to RekonqSettings
Diffstat (limited to 'src/settings/test/test_settingsdialog.cpp')
-rw-r--r-- | src/settings/test/test_settingsdialog.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/settings/test/test_settingsdialog.cpp b/src/settings/test/test_settingsdialog.cpp new file mode 100644 index 00000000..b70c6dda --- /dev/null +++ b/src/settings/test/test_settingsdialog.cpp @@ -0,0 +1,20 @@ +#include "../settingsdialog.h" +#include "settings_mock.hpp" +#include <QApplication> + +using ::testing::AtLeast; +using ::testing::NiceMock; +using ::testing::ReturnArg; + +int main(int argc, char **argv) +{ + QApplication app(argc, argv); + + NiceMock<MockSettings> settings; + EXPECT_CALL(settings, value).WillRepeatedly(ReturnArg<1>()); + + SettingsDialog dlg(&settings); + dlg.show(); + + return QApplication::exec(); +} |