diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-09-18 22:42:52 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-09-18 22:42:52 +0300 |
commit | 35c551f7ff6a3dbb00b209d7388eaccde448dd2b (patch) | |
tree | 71b270d1e3186f60d8d213f593ff258c436a3314 /src/test | |
parent | Remove UrlBar::loadRequestedUrl slot (diff) | |
download | rekonq-35c551f7ff6a3dbb00b209d7388eaccde448dd2b.tar.xz |
RekonqWindow: rename loadUrl slots
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/rekonqwindow_mock.hpp | 4 | ||||
-rw-r--r-- | src/test/test_rekonqwindow.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/rekonqwindow_mock.hpp b/src/test/rekonqwindow_mock.hpp index 7ec30d88..27b7711a 100644 --- a/src/test/rekonqwindow_mock.hpp +++ b/src/test/rekonqwindow_mock.hpp @@ -11,6 +11,6 @@ public: ~FakeWindow() override = default; MOCK_METHOD(int, addView, (RekonqView *), (override)); - MOCK_METHOD(void, loadUrl, (rekonq::DefaultUrl, rekonq::OpenType), (override)); - MOCK_METHOD(void, loadUrl, (const QUrl &, rekonq::OpenType), (override)); + MOCK_METHOD(void, loadDefaultUrl, (rekonq::DefaultUrl, rekonq::OpenType), (override)); + MOCK_METHOD(void, loadRequestedUrl, (const QUrl &, rekonq::OpenType), (override)); }; diff --git a/src/test/test_rekonqwindow.cpp b/src/test/test_rekonqwindow.cpp index 46c63e53..b4db0256 100644 --- a/src/test/test_rekonqwindow.cpp +++ b/src/test/test_rekonqwindow.cpp @@ -12,8 +12,8 @@ TEST(RekonqWindow, mock_shortcuts) { FakeWindow window; EXPECT_CALL(window, addView).Times(0); - EXPECT_CALL(window, loadUrl(Matcher<rekonq::DefaultUrl>(_), _)).Times(0); - EXPECT_CALL(window, loadUrl(Matcher<const QUrl &>(_), _)).Times(0); + EXPECT_CALL(window, loadDefaultUrl).Times(0); + EXPECT_CALL(window, loadRequestedUrl).Times(0); for (auto *action : window.findChildren<QAction *>(QRegularExpression("^action.*"))) { EXPECT_TRUE(action->shortcut().isEmpty()) << qUtf8Printable(action->objectName()); |