diff options
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()); |