Refactor D-Bus object
- The intent behind this commit is to refactor D-Bus, and abstract
the bus, getService, getProperty and other methods into the utils
file, and other file operations D-Bus only need to include
uitls.hpp.
- We can also continue to add other general methods such as
setPropery, getSubTree in the utils file in the future.
- Also, removed redundant files(occ_finder.hpp and occ_finder.cpp).
Tested: built openpower-occ-control successfully and worked.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I53e61e30a76173c154a9f47fc122936468abbc4b
diff --git a/test/utest.cpp b/test/utest.cpp
index 39e5250..04fa492 100644
--- a/test/utest.cpp
+++ b/test/utest.cpp
@@ -12,9 +12,8 @@
{
public:
VerifyOccInput() :
- bus(sdbusplus::bus::new_default()), rc(sd_event_default(&event)),
- eventP(event), manager(bus, eventP),
- occStatus(bus, eventP, "/test/path/occ1", manager), pcap(bus, occStatus)
+ rc(sd_event_default(&event)), eventP(event), manager(eventP),
+ occStatus(eventP, "/test/path/occ1", manager), pcap(occStatus)
{
EXPECT_GE(rc, 0);
event = nullptr;
@@ -23,7 +22,6 @@
{
}
- sdbusplus::bus::bus bus;
sd_event* event;
int rc;
open_power::occ::EventPtr eventP;