blob: a8054d3c6cf2604dccb2ab12025880d615baa635 [file] [log] [blame]
Deepak Kodihalli707a3e12017-06-14 03:56:12 -05001#include <gtest/gtest.h>
2#include <experimental/filesystem>
3#include <stdlib.h>
4#include <sdbusplus/bus.hpp>
5#include "log_manager.hpp"
6#include "config.h"
7
8namespace phosphor
9{
10namespace logging
11{
12namespace test
13{
14
15namespace fs = std::experimental::filesystem;
16
17char tmplt[] = "/tmp/logging_test.XXXXXX";
18auto bus = sdbusplus::bus::new_default();
Nagaraju Goruganti05aae8b2017-08-30 07:56:12 -050019phosphor::logging::internal::Manager manager(bus, OBJ_INTERNAL);
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050020
21class TestSerialization : public testing::Test
22{
23 public:
24 TestSerialization() :
25 dir(fs::path(mkdtemp(tmplt)))
26 {
27 }
28
29 ~TestSerialization()
30 {
31 fs::remove_all(dir);
32 }
33
34 fs::path dir;
35};
36
37} // namespace test
38} // namespace logging
39} // namespace phosphor
40
41