1 #include "config.h"
2 
3 #include "log_manager.hpp"
4 
5 #include <stdlib.h>
6 
7 #include <sdbusplus/bus.hpp>
8 #include <sdbusplus/test/sdbus_mock.hpp>
9 
10 #include <filesystem>
11 
12 #include <gtest/gtest.h>
13 
14 namespace phosphor
15 {
16 namespace logging
17 {
18 namespace test
19 {
20 
21 namespace fs = std::filesystem;
22 
23 char tmplt[] = "/tmp/logging_test.XXXXXX";
24 sdbusplus::SdBusMock sdbusMock;
25 sdbusplus::bus_t bus = sdbusplus::get_mocked_new(&sdbusMock);
26 phosphor::logging::internal::Manager manager(bus, OBJ_INTERNAL);
27 
28 class TestSerialization : public testing::Test
29 {
30   public:
31     TestSerialization() : dir(fs::path(mkdtemp(tmplt))) {}
32 
33     ~TestSerialization()
34     {
35         fs::remove_all(dir);
36     }
37 
38     fs::path dir;
39 };
40 
41 } // namespace test
42 } // namespace logging
43 } // namespace phosphor
44