Shared test fixtures for CamCom integration tests. More...
#include <gtest/gtest.h>#include <memory>#include <string>#include <thread>#include <chrono>#include <filesystem>#include <cstdlib>#include <sys/socket.h>#include <netinet/in.h>#include <unistd.h>#include "camcom/testbench/config.hpp"#include "camcom/testbench/server.hpp"#include "camcom/common/errors.hpp"#include "camcom/third_party/httplib.h"#include <ifw/fnd/defs/base.hpp>Go to the source code of this file.
Namespaces | |
| namespace | camcom |
| namespace | camcom::test |
Functions | |
| void | camcom::test::initLogger () |
| int | camcom::test::findFreePort () |
| Find a free TCP port by binding to port 0. | |
| template<typename Pred> | |
| bool | camcom::test::waitFor (Pred pred, int timeout_ms=3000, int poll_ms=50) |
| Poll a predicate with timeout. Returns true if predicate became true. | |
| server::ServerConfig | camcom::test::buildTestConfig (int port, const std::string &rec_dir) |
| Build a minimal ServerConfig for integration tests. | |
| server::ServerConfig | camcom::test::buildGenICamEmuTestConfig (int port, const std::string &rec_dir) |
| Build a minimal ServerConfig for GenICam emulator integration tests. | |
Shared test fixtures for CamCom integration tests.