test: fix power10-mode compile errors

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I44a90cfbca3804de4a7fe169fa567a4672a48e78
diff --git a/test/error_files_tests.cpp b/test/error_files_tests.cpp
index 6931cdc..6f9f5de 100644
--- a/test/error_files_tests.cpp
+++ b/test/error_files_tests.cpp
@@ -25,7 +25,12 @@
   public:
     ErrorFiles() :
         rc(sd_event_default(&event)), pEvent(event), manager(pEvent),
-        status(pEvent, "/dummy1", manager)
+        status(pEvent, "/dummy1", manager
+#ifdef POWER10
+               ,
+               powerMode
+#endif
+        )
     {
         EXPECT_GE(rc, 0);
         event = nullptr;
@@ -75,6 +80,9 @@
     sd_event* event;
     int rc;
     open_power::occ::EventPtr pEvent;
+#ifdef POWER10
+    std::unique_ptr<powermode::PowerMode> powerMode = nullptr;
+#endif
 
     Manager manager;
     Status status;
@@ -86,7 +94,12 @@
 
 TEST_F(ErrorFiles, AddDeviceErrorWatch)
 {
-    Device occDevice(pEvent, devicePath, manager, status);
+    Device occDevice(pEvent, devicePath, manager, status
+#ifdef POWER10
+                     ,
+                     powerMode
+#endif
+    );
 
     occDevice.addErrorWatch(false);
     occDevice.removeErrorWatch();
@@ -94,7 +107,12 @@
 
 TEST_F(ErrorFiles, AddLegacyDeviceErrorWatch)
 {
-    Device legacyOccDevice(pEvent, legacyDevicePath, manager, status);
+    Device legacyOccDevice(pEvent, legacyDevicePath, manager, status
+#ifdef POWER10
+                           ,
+                           powerMode
+#endif
+    );
 
     legacyOccDevice.addErrorWatch(false);
     legacyOccDevice.removeErrorWatch();
diff --git a/test/utest.cpp b/test/utest.cpp
index cf3401a..89a3d6e 100644
--- a/test/utest.cpp
+++ b/test/utest.cpp
@@ -16,7 +16,13 @@
   public:
     VerifyOccInput() :
         rc(sd_event_default(&event)), eventP(event), manager(eventP),
-        occStatus(eventP, "/test/path/occ1", manager), pcap(occStatus)
+        occStatus(eventP, "/test/path/occ1", manager
+#ifdef POWER10
+                  ,
+                  powerMode
+#endif
+                  ),
+        pcap(occStatus)
     {
         EXPECT_GE(rc, 0);
         event = nullptr;
@@ -29,6 +35,9 @@
 
     Manager manager;
     Status occStatus;
+#ifdef POWER10
+    std::unique_ptr<powermode::PowerMode> powerMode = nullptr;
+#endif
     powercap::PowerCap pcap;
 };