chromium/chrome/browser/enterprise/connectors/device_trust/test/device_trust_management_mixin.cc

// Copyright 2023 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/browser/enterprise/connectors/device_trust/test/device_trust_management_mixin.h"

#include <utility>

#include "base/check.h"
#include "base/containers/flat_map.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/enterprise/connectors/device_trust/test/test_constants.h"
#include "chrome/browser/profiles/profile.h"
#include "components/device_signals/core/browser/pref_names.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_service.h"

#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/login/test/scoped_policy_update.h"
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)

namespace enterprise_connectors::test {

namespace {

base::Value GetAllowedHostValue(const std::string& url) {}

base::Value GetEmptyListValue() {}

#if BUILDFLAG(IS_CHROMEOS_ASH)
std::vector<std::string> ParseUrlsValue(const base::Value& urls_value) {
  std::vector<std::string> url_strings;
  for (const base::Value& value : urls_value.GetList()) {
    url_strings.push_back(value.GetString());
  }
  return url_strings;
}
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)

ManagementContext ToManagementContext(
    const DeviceTrustConnectorState& device_trust_state) {}

}  // namespace

DeviceTrustManagementMixin::DeviceTrustManagementMixin(
    InProcessBrowserTestMixinHost* host,
    InProcessBrowserTest* test_base,
    DeviceTrustConnectorState device_trust_state)
    :{}

DeviceTrustManagementMixin::~DeviceTrustManagementMixin() = default;

void DeviceTrustManagementMixin::ManageCloudUser() {}

void DeviceTrustManagementMixin::EnableMachineInlinePolicy(
    const std::string& url) {}

void DeviceTrustManagementMixin::DisableMachineInlinePolicy() {}

void DeviceTrustManagementMixin::EnableUserInlinePolicy(
    const std::string& url) {}

void DeviceTrustManagementMixin::DisableUserInlinePolicy() {}

void DeviceTrustManagementMixin::DisableAllInlinePolicies() {}

void DeviceTrustManagementMixin::SetConsentGiven(bool consent_given) {}

void DeviceTrustManagementMixin::SetPermanentConsentGiven(
    bool permanent_consent_given) {}

void DeviceTrustManagementMixin::SetUpOnMainThread() {}

void DeviceTrustManagementMixin::SetMachineInlinePolicy(
    base::Value policy_value) {}

void DeviceTrustManagementMixin::SetUserInlinePolicy(base::Value policy_value) {}

}  // namespace enterprise_connectors::test