From 86db843bc53a93dbf566b24df1462a22fccb619a Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 27 Aug 2022 22:09:16 +0300 Subject: Add parseCommandLine tests - use PluginLoader in plugin tests --- src/application.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/application.hpp') diff --git a/src/application.hpp b/src/application.hpp index 7d75af3a..9d98b5a0 100644 --- a/src/application.hpp +++ b/src/application.hpp @@ -12,7 +12,6 @@ #pragma once #include "rekonq.hpp" -#include "rekonqwindow.h" #include #include #include @@ -20,6 +19,7 @@ // Forward Declarations class RekonqView; +class RekonqWindow; class PluginLoader; // class WebTab; @@ -41,7 +41,7 @@ public: Application(int &argc, char *argv[]); ~Application() override; - bool registerPlugin(const QString &path); + REKONQ_TEST_VIRTUAL bool registerPlugin(const QString &path) REKONQ_TEST_PURE; [[nodiscard]] auto pluginList() const { return m_plugins; }; // int newInstance(); @@ -94,8 +94,8 @@ public slots: // RekonqWindow *newWindow(bool withTab = true, bool PrivateBrowsingMode = false); // RekonqWindow *newWindow(WebPage *pg); - RekonqWindow *newWindow(); - RekonqView *newView(const QUrl &url = QUrl(), RekonqWindow *window = nullptr); + REKONQ_TEST_VIRTUAL RekonqWindow *newWindow() REKONQ_TEST_PURE; + REKONQ_TEST_VIRTUAL RekonqView *newView(const QUrl &url = QUrl(), RekonqWindow *window = nullptr) REKONQ_TEST_PURE; // void createWebAppShortcut(const QString & urlString = QString(), const QString & titleString = QString()); -- cgit v1.2.1