diff options
| author | Alex Deymo <deymo@google.com> | 2016-02-03 09:22:17 -0800 |
|---|---|---|
| committer | Alex Deymo <deymo@google.com> | 2016-02-03 20:52:47 -0800 |
| commit | 1f19dccb115cf608104b1cb0d192a53ae32f238f (patch) | |
| tree | 7f9ba9eab7aafb5d7727852a3ed369e086a3acb5 /common/utils.cc | |
| parent | 12542ace0f43c5afaf1e7112556b71aea8454c79 (diff) | |
Add ErrorCode::kUserCanceled.
To accomodate the posibility of canceling an ongoing update, this patch
adds a new ErrorCode signaling a user canceling the update.
This patch also removes the now useless unittests that checks if you
added a new error code since the compiler fails if you don't add the
error code to the method mentioned in the test.
Bug: None
TEST=FEATURES=test emerge-link update_engine
TEST=`mmma system/update_engine` on edison-eng and aosp_arm-eng
Change-Id: I991dab1dd8b6c0bb0c24d51cca4e1b75440a86b4
Diffstat (limited to 'common/utils.cc')
| -rw-r--r-- | common/utils.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/utils.cc b/common/utils.cc index 41a75f80..a09b4253 100644 --- a/common/utils.cc +++ b/common/utils.cc @@ -1110,6 +1110,8 @@ string CodeToString(ErrorCode code) { return "ErrorCode::kOmahaRequestXMLHasEntityDecl"; case ErrorCode::kFilesystemVerifierError: return "ErrorCode::kFilesystemVerifierError"; + case ErrorCode::kUserCanceled: + return "ErrorCode::kUserCanceled"; // Don't add a default case to let the compiler warn about newly added // error codes which should be added here. } |
