Add multi-host postcode support

These changes add the multiple host postcode implementation.
In addition to the LPC snoop the postcode can be read via D-Bus
interface.The same is displayed in seven segment display thorough
GPIO lines.

The design can be refered at
   https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/35065

Tested:

 Verified in Facebook Tiogapass & Yosemitev2 platforms.

1.The postcode displayed in the seven segment corresponding to the
  host position selected in the frontpanel of Facebook
  yosemitev2(4 host).

2.The postcode history is verified in the respective host directory
     "/var/lib/phosphor-post-code-manager/hostX(1,2,3,4)".

Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: Id79ad00652bfedd319d3b8ccf1aafbdc60b33d86
diff --git a/test/post_reporter_test.cpp b/test/post_reporter_test.cpp
index 5213593..0a13769 100644
--- a/test/post_reporter_test.cpp
+++ b/test/post_reporter_test.cpp
@@ -35,32 +35,32 @@
 {
 
     EXPECT_CALL(bus_mock,
-                sd_bus_emit_object_added(IsNull(), StrEq(SNOOP_OBJECTPATH)))
+                sd_bus_emit_object_added(IsNull(), StrEq(snoopObject)))
         .WillOnce(Return(0));
 
-    PostReporter testReporter(bus, SNOOP_OBJECTPATH, true);
+    PostReporter testReporter(bus, snoopObject, true);
     testReporter.emit_object_added();
 }
 
 TEST_F(PostReporterTest, AddsObjectWithExpectedName)
 {
     EXPECT_CALL(bus_mock,
-                sd_bus_add_object_vtable(IsNull(), _, StrEq(SNOOP_OBJECTPATH),
-                                         StrEq(SNOOP_BUSNAME), _, _))
+                sd_bus_add_object_vtable(IsNull(), _, StrEq(snoopObject),
+                                         StrEq(snoopDbus), _, _))
         .WillOnce(Return(0));
 
-    PostReporter testReporter(bus, SNOOP_OBJECTPATH, true);
+    PostReporter testReporter(bus, snoopObject, true);
 }
 
 TEST_F(PostReporterTest, ValueReadsDefaultToZero)
 {
-    PostReporter testReporter(bus, SNOOP_OBJECTPATH, true);
+    PostReporter testReporter(bus, snoopObject, true);
     EXPECT_EQ(0, std::get<primary_post_code_t>(testReporter.value()));
 }
 
 TEST_F(PostReporterTest, SetValueToPositiveValueWorks)
 {
-    PostReporter testReporter(bus, SNOOP_OBJECTPATH, true);
+    PostReporter testReporter(bus, snoopObject, true);
     secondary_post_code_t secondaryCode = {123, 124, 125};
     testReporter.value(std::make_tuple(65537, secondaryCode));
     EXPECT_EQ(65537, std::get<primary_post_code_t>(testReporter.value()));
@@ -70,7 +70,7 @@
 
 TEST_F(PostReporterTest, SetValueMultipleTimesWorks)
 {
-    PostReporter testReporter(bus, SNOOP_OBJECTPATH, true);
+    PostReporter testReporter(bus, snoopObject, true);
     secondary_post_code_t secondaryCode = {10, 40, 0, 245, 56};
     testReporter.value(std::make_tuple(123, secondaryCode));
     EXPECT_EQ(123, std::get<primary_post_code_t>(testReporter.value()));