blob: 379b12479ff9c40b59913422d2289d4f2d6dca3b [file] [log] [blame]
Deepak Kodihalli707a3e12017-06-14 03:56:12 -05001#include "elog_entry.hpp"
2#include "elog_serialize.hpp"
Patrick Venturef18bf832018-10-26 18:14:00 -07003#include "serialization_tests.hpp"
Deepak Kodihalli707a3e12017-06-14 03:56:12 -05004
5namespace phosphor
6{
7namespace logging
8{
9namespace test
10{
11
12TEST_F(TestSerialization, testPath)
13{
14 auto id = 99;
15 auto e = std::make_unique<Entry>(
Patrick Venturef18bf832018-10-26 18:14:00 -070016 bus, std::string(OBJ_ENTRY) + '/' + std::to_string(id), id, manager);
Deepak Kodihalli707a3e12017-06-14 03:56:12 -050017 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