// Copyright 2014 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/ash/policy/core/fake_device_cloud_policy_manager.h"
#include <utility>
#include "base/task/sequenced_task_runner.h"
#include "chrome/browser/ash/policy/core/device_cloud_policy_store_ash.h"
#include "components/policy/core/common/cloud/mock_cloud_external_data_manager.h"
namespace policy {
FakeDeviceCloudPolicyManager::FakeDeviceCloudPolicyManager(
std::unique_ptr<DeviceCloudPolicyStoreAsh> store,
const scoped_refptr<base::SequencedTaskRunner>& task_runner)
: DeviceCloudPolicyManagerAsh(
std::move(store),
std::make_unique<MockCloudExternalDataManager>(),
task_runner,
nullptr,
crd_delegate_) {}
FakeDeviceCloudPolicyManager::~FakeDeviceCloudPolicyManager() {
Shutdown();
}
} // namespace policy