chromium/chrome/enterprise_companion/enterprise_companion_status.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/enterprise_companion/enterprise_companion_status.h"

#include <string>
#include <variant>

#include "base/functional/overloaded.h"
#include "build/build_config.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/cloud_policy_validator.h"

#if BUILDFLAG(IS_POSIX)
#include "base/posix/safe_strerror.h"
#else
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#endif

namespace enterprise_companion {

namespace {

constexpr std::string DeviceManagementStatusToString(
    policy::DeviceManagementStatus status) {}

constexpr std::string ApplicationErrorToString(ApplicationError error) {}

std::string PosixErrnoToString(EnterpriseCompanionStatus::PosixErrno error) {}

}  // namespace

PersistedError::PersistedError(int space,
                               int code,
                               const std::string& description)
    :{}
PersistedError::PersistedError(const PersistedError&) = default;
PersistedError::PersistedError(PersistedError&&) = default;
PersistedError::~PersistedError() = default;
PersistedError& PersistedError::operator=(const PersistedError&) = default;
PersistedError& PersistedError::operator=(PersistedError&&) = default;

std::string EnterpriseCompanionStatus::description() const {}

EnterpriseCompanionStatus::EnterpriseCompanionStatus(
    const EnterpriseCompanionStatus&) = default;
EnterpriseCompanionStatus::~EnterpriseCompanionStatus() = default;

EnterpriseCompanionStatus::EnterpriseCompanionStatus(ApplicationError error)
    :{}

EnterpriseCompanionStatus::EnterpriseCompanionStatus(
    StatusVariant status_variant)
    :{}

}  // namespace enterprise_companion