blob: 653715cb7efa38c2391edf3b2b3806b98e1d4390 [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "buffet/registration_status.h"
#include <base/logging.h>
namespace buffet {
std::string StatusToString(RegistrationStatus status) {
switch (status) {
case RegistrationStatus::kUnconfigured:
return "unconfigured";
case RegistrationStatus::kConnecting:
return "connecting";
case RegistrationStatus::kConnected:
return "connected";
case RegistrationStatus::kInvalidCredentials:
return "invalid_credentials";
CHECK(0) << "Unknown status";
return "unknown";
} // namespace buffet