Commit 5cd80369bdf76456fdaaad27711e02df53276d69
1 parent
8660a680
Setting up SledgeHammer Test
Showing
3 changed files
with
36 additions
and
0 deletions
test/CMakeLists.txt
test/SledgeHammerTest.cpp
0 → 100644
| 1 | +/**************************************************************************** | ||
| 2 | + * COpyright (c) 2023 Open Systems Development B.V. | ||
| 3 | + ****************************************************************************/ | ||
| 4 | + | ||
| 5 | +#include <gmock/gmock.h> | ||
| 6 | +#include <gtest/gtest.h> | ||
| 7 | +#include <string> | ||
| 8 | +#include <memory> | ||
| 9 | + | ||
| 10 | +#include "mqttclient.h" | ||
| 11 | + | ||
| 12 | +using namespace osdev::components::mqtt; | ||
| 13 | +using namespace osdev::components::log; | ||
| 14 | + |
test/helperclasses/PublisherClass.h
0 → 100644
| 1 | +/**************************************************************************** | ||
| 2 | + * Copyright (c)2024 Open Systems Development B.V. | ||
| 3 | + ****************************************************************************/ | ||
| 4 | + | ||
| 5 | +#include "mqttclient.h" | ||
| 6 | + | ||
| 7 | +#include <string> | ||
| 8 | +#include <memory> | ||
| 9 | + | ||
| 10 | +using namespace osdev::components::mqtt; | ||
| 11 | +using namespace osdev::components::log; | ||
| 12 | + | ||
| 13 | +static const std::string main_topic = "test/"; | ||
| 14 | + | ||
| 15 | +class Publisher | ||
| 16 | +{ | ||
| 17 | +public: | ||
| 18 | + Publisher() : m_mqtt_client("TopicTester"){} | ||
| 19 | + virtual ~Publisher() {} | ||
| 20 | + | ||
| 21 | +}; | ||
| 0 | \ No newline at end of file | 22 | \ No newline at end of file |