summaryrefslogtreecommitdiff
path: root/src/test/rekonqwindow_mock.hpp
blob: 7ec30d882efd1990ef2d1d8c546366f5c2e1cc51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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(int, addView, (RekonqView *), (override));
  MOCK_METHOD(void, loadUrl, (rekonq::DefaultUrl, rekonq::OpenType), (override));
  MOCK_METHOD(void, loadUrl, (const QUrl &, rekonq::OpenType), (override));
};