blob: 32c64398f51e85ff9d3dd008a13ed873526d7fa1 [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
5#include "update_engine/policy_manager/policy.h"
6
7#include <string>
8
9using std::string;
10
11namespace chromeos_policy_manager {
12
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
25} // namespace chromeos_update_engine