Aktualizr
C++ SOTA Client
tests
test_utils.h
1
#ifndef TEST_UTILS_H_
2
#define TEST_UTILS_H_
3
4
#include <netinet/in.h>
5
#include <sys/socket.h>
6
#include <sys/types.h>
7
#include <sys/un.h>
8
9
#include "utilities/utils.h"
10
11
struct
TestUtils
{
12
static
std::string getFreePort();
13
static
void
writePathToConfig(
const
boost::filesystem::path &toml_in,
const
boost::filesystem::path &toml_out,
14
const
boost::filesystem::path &storage_path);
15
};
16
17
class
TestHelperProcess
{
18
public
:
19
TestHelperProcess
(
const
std::string &argv0,
const
std::string &argv1);
20
~
TestHelperProcess
();
21
22
private
:
23
pid_t pid_;
24
};
25
26
#endif // TEST_UTILS_H_
TestUtils
Definition:
test_utils.h:11
TestHelperProcess
Definition:
test_utils.h:17
Generated by
1.8.14