1 #include "elog_entry.hpp"
2 #include "elog_serialize.hpp"
3 #include "serialization_tests.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, std::string(OBJ_ENTRY) + '/' + std::to_string(id), id, manager);
17     auto path = serialize(*e, TestSerialization::dir);
18     EXPECT_EQ(path.c_str(), TestSerialization::dir / std::to_string(id));
19 }
20 
21 } // namespace test
22 } // namespace logging
23 } // namespace phosphor
24