Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 1 | #include "elog_entry.hpp" |
| 2 | #include "elog_serialize.hpp" |
Patrick Venture | f18bf83 | 2018-10-26 18:14:00 -0700 | [diff] [blame] | 3 | #include "serialization_tests.hpp" |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 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>( |
Patrick Venture | f18bf83 | 2018-10-26 18:14:00 -0700 | [diff] [blame] | 16 | bus, std::string(OBJ_ENTRY) + '/' + std::to_string(id), id, manager); |
Deepak Kodihalli | 707a3e1 | 2017-06-14 03:56:12 -0500 | [diff] [blame] | 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 |