/* * SPDX-FileCopyrightText: 2014 Martin Gräßlin * * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #pragma once #include "../src/private/decorationbridge.h" #include class MockClient; class MockSettings; class MockBridge : public KDecoration3::DecorationBridge { Q_OBJECT public: std::unique_ptr createClient(KDecoration3::DecoratedClient *client, KDecoration3::Decoration *decoration) override; std::unique_ptr settings(KDecoration3::DecorationSettings *parent) override; MockClient *lastCreatedClient() const { return m_lastCreatedClient; } MockSettings *lastCreatedSettings() const { return m_lastCreatedSettings; } private: MockClient *m_lastCreatedClient = nullptr; MockSettings *m_lastCreatedSettings = nullptr; };