blob: 6e413793807b29fa3d64ee05fa0435698a585c26 [file] [log] [blame]
#include "config.h"
#include "log_manager.hpp"
#include <stdlib.h>
#include <experimental/filesystem>
#include <sdbusplus/bus.hpp>
#include <gtest/gtest.h>
namespace phosphor
{
namespace logging
{
namespace test
{
namespace fs = std::experimental::filesystem;
char tmplt[] = "/tmp/logging_test.XXXXXX";
auto bus = sdbusplus::bus::new_default();
phosphor::logging::internal::Manager manager(bus, OBJ_INTERNAL);
class TestSerialization : public testing::Test
{
public:
TestSerialization() : dir(fs::path(mkdtemp(tmplt)))
{
}
~TestSerialization()
{
fs::remove_all(dir);
}
fs::path dir;
};
} // namespace test
} // namespace logging
} // namespace phosphor