tests: add MockDDS and use it in GTest smoke-tests to simulate publish/subscribe flows
This commit is contained in:
1 parent
b44bb09891
commit
7372bdc766
5 files changed
+61
-4
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
namespace MockDDS {
|
||||
|
||||
// Very small mock: single-writer, single-last-message per topic store.
|
||||
void publish(const std::string &topic, const std::string &msg);
|
||||
std::string take_last(const std::string &topic);
|
||||
void clear_all();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user