utest.cpp (14d1402dd899a869eaab01fd9d117f020a9787a3) | utest.cpp (b5ca101530dc5fa0992d00ab36edb292519cef94) |
---|---|
1#include "powercap.hpp" 2#include "utils.hpp" 3 | 1#include "powercap.hpp" 2#include "utils.hpp" 3 |
4#include <experimental/filesystem> | |
5#include <occ_events.hpp> 6#include <occ_manager.hpp> 7 | 4#include <occ_events.hpp> 5#include <occ_manager.hpp> 6 |
7#include <experimental/filesystem> 8 |
|
8#include <gtest/gtest.h> 9 10using namespace open_power::occ; 11using namespace open_power::occ::utils; 12 13class VerifyOccInput : public ::testing::Test 14{ 15 public: 16 VerifyOccInput() : 17 rc(sd_event_default(&event)), eventP(event), manager(eventP), 18 occStatus(eventP, "/test/path/occ1", manager), pcap(occStatus) 19 { 20 EXPECT_GE(rc, 0); 21 event = nullptr; 22 } 23 ~VerifyOccInput() | 9#include <gtest/gtest.h> 10 11using namespace open_power::occ; 12using namespace open_power::occ::utils; 13 14class VerifyOccInput : public ::testing::Test 15{ 16 public: 17 VerifyOccInput() : 18 rc(sd_event_default(&event)), eventP(event), manager(eventP), 19 occStatus(eventP, "/test/path/occ1", manager), pcap(occStatus) 20 { 21 EXPECT_GE(rc, 0); 22 event = nullptr; 23 } 24 ~VerifyOccInput() |
24 { 25 } | 25 {} |
26 27 sd_event* event; 28 int rc; 29 open_power::occ::EventPtr eventP; 30 31 Manager manager; 32 Status occStatus; 33 powercap::PowerCap pcap; --- 37 unchanged lines hidden --- | 26 27 sd_event* event; 28 int rc; 29 open_power::occ::EventPtr eventP; 30 31 Manager manager; 32 Status occStatus; 33 powercap::PowerCap pcap; --- 37 unchanged lines hidden --- |