test/hyprland/backend: fix

This commit is contained in:
Austin Horstman
2024-06-09 10:18:42 -05:00
parent 959422f143
commit b365831839
2 changed files with 56 additions and 95 deletions

View File

@ -0,0 +1,16 @@
#include "modules/hyprland/backend.hpp"
namespace fs = std::filesystem;
namespace hyprland = waybar::modules::hyprland;
class IPCTestFixture : public hyprland::IPC {
public:
IPCTestFixture() : IPC() { IPC::socketFolder_ = ""; }
~IPCTestFixture() { fs::remove_all(tempDir); }
protected:
const char* instanceSig = "instance_sig";
fs::path tempDir = fs::temp_directory_path() / "hypr_test";
private:
};