blob: 3b93ff8ac3713b4f23f8e34715bc3756d0ab630d [file] [log] [blame]
// Copyright 2019 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.
#ifndef POWER_MANAGER_POWERD_SYSTEM_SUSPEND_CONFIGURATOR_STUB_H_
#define POWER_MANAGER_POWERD_SYSTEM_SUSPEND_CONFIGURATOR_STUB_H_
#include "power_manager/powerd/system/suspend_configurator.h"
#include <base/macros.h>
namespace power_manager {
namespace system {
// Stub implementation of SuspendConfiguratorInterface for use by tests.
class SuspendConfiguratorStub : public SuspendConfiguratorInterface {
public:
SuspendConfiguratorStub() = default;
SuspendConfiguratorStub(const SuspendConfiguratorStub&) = delete;
SuspendConfiguratorStub& operator=(const SuspendConfiguratorStub&) = delete;
~SuspendConfiguratorStub() override = default;
// SuspendConfiguratorInterface implementation.
void PrepareForSuspend(const base::TimeDelta& suspend_duration) override {}
bool UndoPrepareForSuspend() override { return true; }
};
} // namespace system
} // namespace power_manager
#endif // POWER_MANAGER_POWERD_SYSTEM_SUSPEND_CONFIGURATOR_STUB_H_