merge Verification and Update statuses
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ibb9c1c9f9cb7e9cda18f4e8dddb31d57a12f0d90
diff --git a/verify_systemd.cpp b/verify_systemd.cpp
index 11386e0..73d9f24 100644
--- a/verify_systemd.cpp
+++ b/verify_systemd.cpp
@@ -67,9 +67,9 @@
/* TODO: Implement this. */
}
-VerifyCheckResponses SystemdVerification::status()
+ActionStatus SystemdVerification::status()
{
- VerifyCheckResponses result = VerifyCheckResponses::other;
+ ActionStatus result = ActionStatus::unknown;
std::ifstream ifs;
ifs.open(checkPath);
@@ -83,15 +83,15 @@
ifs >> status;
if (status == "running")
{
- result = VerifyCheckResponses::running;
+ result = ActionStatus::running;
}
else if (status == "success")
{
- result = VerifyCheckResponses::success;
+ result = ActionStatus::success;
}
else if (status == "failed")
{
- result = VerifyCheckResponses::failed;
+ result = ActionStatus::failed;
}
}