Alex Deymo | 0d11c60 | 2014-04-23 20:12:20 -0700 | [diff] [blame] | 1 | // Copyright (c) 2014 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Alex Deymo | 63784a5 | 2014-05-28 10:46:14 -0700 | [diff] [blame] | 5 | #include "update_engine/update_manager/policy.h" |
Alex Deymo | 0d11c60 | 2014-04-23 20:12:20 -0700 | [diff] [blame] | 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | using std::string; |
| 10 | |
Alex Deymo | 63784a5 | 2014-05-28 10:46:14 -0700 | [diff] [blame] | 11 | namespace chromeos_update_manager { |
Alex Deymo | 0d11c60 | 2014-04-23 20:12:20 -0700 | [diff] [blame] | 12 | |
| 13 | string ToString(EvalStatus status) { |
| 14 | switch (status) { |
| 15 | case EvalStatus::kFailed: |
| 16 | return "kFailed"; |
| 17 | case EvalStatus::kSucceeded: |
| 18 | return "kSucceeded"; |
| 19 | case EvalStatus::kAskMeAgainLater: |
| 20 | return "kAskMeAgainLater"; |
| 21 | } |
| 22 | return "Invalid"; |
| 23 | } |
| 24 | |
Alex Vakulenko | 072359c | 2014-07-18 11:41:07 -0700 | [diff] [blame^] | 25 | } // namespace chromeos_update_manager |