blob: 403237d4b195fd0c3099a1ae174aa07ce08caa61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include "../rekonqwindow.hpp"
#include <gmock/gmock.h>
class FakeWindow : public RekonqWindow {
Q_OBJECT
public:
explicit FakeWindow(QWidget *parent = nullptr) : RekonqWindow(parent) {}
~FakeWindow() override = default;
MOCK_METHOD(RekonqView *, currentView, (), (override));
MOCK_METHOD(int, addView, (RekonqView *), (override));
MOCK_METHOD(void, loadUrl, (rekonq::DefaultUrl, rekonq::OpenType), (override));
MOCK_METHOD(void, loadUrl, (const QUrl &, rekonq::OpenType), (override));
};
|