summaryrefslogtreecommitdiffstats
path: root/test/utest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utest.cpp')
-rw-r--r--test/utest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/utest.cpp b/test/utest.cpp
index 9731209..dc80cc2 100644
--- a/test/utest.cpp
+++ b/test/utest.cpp
@@ -1,5 +1,6 @@
#include <gtest/gtest.h>
#include <occ_events.hpp>
+#include <occ_manager.hpp>
#include "powercap.hpp"
using namespace open_power::occ;
@@ -11,7 +12,8 @@ class VerifyOccInput : public ::testing::Test
bus(sdbusplus::bus::new_default()),
rc(sd_event_default(&event)),
eventP(event),
- occStatus(bus, eventP, "/test/path/occ1"),
+ manager(bus, eventP),
+ occStatus(bus, eventP, "/test/path/occ1", manager),
pcap(bus,occStatus)
{
EXPECT_GE(rc, 0);
@@ -25,6 +27,7 @@ class VerifyOccInput : public ::testing::Test
int rc;
open_power::occ::EventPtr eventP;
+ Manager manager;
Status occStatus;
powercap::PowerCap pcap;
};
OpenPOWER on IntegriCloud