1 #include "serialization_tests.hpp" 2 #include "elog_entry.hpp" 3 #include "elog_serialize.hpp" 4 5 namespace phosphor 6 { 7 namespace logging 8 { 9 namespace test 10 { 11 12 TEST_F(TestSerialization, testPath) 13 { 14 auto id = 99; 15 auto e = std::make_unique<Entry>( 16 bus, 17 std::string(OBJ_ENTRY) + '/' + std::to_string(id), 18 id, 19 manager); 20 auto path = serialize(*e, TestSerialization::dir); 21 EXPECT_EQ(path.c_str(), TestSerialization::dir / std::to_string(id)); 22 } 23 24 } // namespace test 25 } // namespace logging 26 } // namespace phosphor 27 28 29