| #include <analyzer/service_data.hpp> |
| using namespace analyzer; |
| TEST(ServiceData, TestSet1) |
| libhei::Chip chip{"/proc0", 0xdeadbeef}; |
| libhei::Signature rootCause{chip, 0xabcd, 0, 0, |
| libhei::ATTN_TYPE_CHECKSTOP}; |
| ServiceData sd{rootCause}; |
| sd.addCallout(std::make_shared<HardwareCallout>("Test location 1", |
| Callout::Priority::HIGH)); |
| sd.addCallout(std::make_shared<HardwareCallout>("Test location 2", |
| Callout::Priority::MED_A)); |
| sd.addCallout(std::make_shared<ProcedureCallout>(ProcedureCallout::NEXTLVL, |
| Callout::Priority::LOW)); |
| // Create a RAW string containing what we should expect in the JSON output. |
| "LocationCode": "Test location 1", |
| "LocationCode": "Test location 2", |