blob: 50e7d08019ed40037507ea9b4998429ec70ab035 [file] [log] [blame]
Deepak Kodihalli707a3e12017-06-14 03:56:12 -05001#include "serialization_tests.hpp"
2#include "elog_entry.hpp"
3#include "elog_serialize.hpp"
4
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>(
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