blob: 5572974cfdd03670d350d3ecc6999e42d0e61ebf [file] [log] [blame]
Alex Deymo0d11c602014-04-23 20:12:20 -07001// 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 Deymo63784a52014-05-28 10:46:14 -07005#include "update_engine/update_manager/policy.h"
Alex Deymo0d11c602014-04-23 20:12:20 -07006
7#include <string>
8
9using std::string;
10
Alex Deymo63784a52014-05-28 10:46:14 -070011namespace chromeos_update_manager {
Alex Deymo0d11c602014-04-23 20:12:20 -070012
13string 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 Vakulenko072359c2014-07-18 11:41:07 -070025} // namespace chromeos_update_manager