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