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