blob: 756bc825c614c3919d67e22e15808e0db0933ce9 [file] [log] [blame]
// Copyright 2018 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 SHILL_MOCK_POWER_MANAGER_H_
#define SHILL_MOCK_POWER_MANAGER_H_
#include <base/macros.h>
#include <gmock/gmock.h>
#include "shill/power_manager.h"
namespace shill {
class ControlInterface;
class MockPowerManager : public PowerManager {
public:
explicit MockPowerManager(ControlInterface* control_interface);
~MockPowerManager() override;
MOCK_METHOD(bool, ReportSuspendReadiness, (), (override));
MOCK_METHOD(bool, ReportDarkSuspendReadiness, (), (override));
MOCK_METHOD(void,
Start,
(base::TimeDelta,
const PowerManager::SuspendImminentCallback&,
const PowerManager::SuspendDoneCallback&,
const PowerManager::DarkSuspendImminentCallback&),
(override));
MOCK_METHOD(void, Stop, (), (override));
MOCK_METHOD(bool, ChangeRegDomain, (nl80211_dfs_regions), (override));
private:
DISALLOW_COPY_AND_ASSIGN(MockPowerManager);
};
} // namespace shill
#endif // SHILL_MOCK_POWER_MANAGER_H_